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
3955 Solvers
Determine if a Given Number is a Triangle Number
326 Solvers
Return unique values without sorting
605 Solvers
The sum of the numbers in the vector
434 Solvers
5868 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!