Unless something has changed in the newest version of MATLAB, isequal doesn't work with NaNs.
Nan will be studied in the UICBioE240 9.79. Be patient...
I think test suite should use assert(isequalwithequalnans(y,y_correct))
isequal(NaN,NaN)
ans = 0
isequaln(NaN,NaN)
ans = 1
6645 Solvers
310 Solvers
Matrix indexing with two vectors of indices
491 Solvers
135 Solvers
68 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!