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
3923 Solvers
Convert from Base 10 to base 5
205 Solvers
Get the elements of diagonal and antidiagonal for any m-by-n matrix
273 Solvers
110 Solvers
525 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!