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
856 Solvers
193 Solvers
128 Solvers
Return elements unique to either input
561 Solvers
Get the length of a given vector
3984 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!