I think the test cases are not correct. Can you check this?
The test cases expect isequal(NaN,NaN) to return true. This is wrong.
please use the function "isquealn" http://www.mathworks.de/de/help/matlab/ref/isequaln.html
I went ahead and made the test suite change that José suggested above.
Clever! If the system doesn't work properly, work around it.
Thanks :) in retrospect I probably should have overloaded isequal with isequalwithequalnans instead, but I guess this makes a similar point... (and if you are interested, the whole 'singularity' series of problems is devoted to "work arounds" for this sort of ill-defined testsuites)
Encode Roman Numerals
Celsius to Fahrenheit converter
05 - Vector Equations 1
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
Area of an Isoceles Triangle
Find the position of last minimum value in an integer array with numbers
Find the position of first minimum value in an integer array with numbers
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office