Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • \$\begingroup\$ I don't know MATLAB, but can the isequal function be shortened to ==? \$\endgroup\$ Commented Apr 13, 2017 at 14:41
  • 1
    \$\begingroup\$ @HyperNeutrino isequal would be needed if the output required true or false rather than a truthy or falsey value. As the challenge stands, == is indeed enough. \$\endgroup\$ Commented Apr 13, 2017 at 14:42
  • \$\begingroup\$ @HyperNeutrino It would return a vector containing the results of elementwise comparison of the two vectors. \$\endgroup\$ Commented Apr 13, 2017 at 14:43
  • \$\begingroup\$ Oh okay. Nice answer though! \$\endgroup\$ Commented Apr 13, 2017 at 14:43
  • \$\begingroup\$ wouldn't an annonymous function be shorter? \$\endgroup\$ Commented Apr 13, 2017 at 23:36