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
Project Euler: Problem 10, Sum of Primes
735 Solvers
410 Solvers
Getting the indices from a matrice
373 Solvers
Fahrenheit to Celsius converter
371 Solvers
Try 1.5.4: Celsius to Fahrenheit
624 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!