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)
Back and Forth Rows
Remove the small words from a list of words.
How to find the position of an element in a vector without using the find function
Is it a number?
03 - Matrix Variables 3
Find the position of first minimum value in an integer array with numbers
Find the position of last minimum value in an integer array with numbers
Find the treasures in MATLAB Central and discover how the community can help you!
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