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)
Make the vector [1 2 3 4 5 6 7 8 9 10]
36344 Solvers
2268 Solvers
Is my wife right? Now with even more wrong husband
1245 Solvers
284 Solvers
576 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!