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
Determine if input is a Narcissistic number
123 Solvers
Output any real number that is neither positive nor negative
322 Solvers
268 Solvers
435 Solvers
338 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!