I imagine you are going to need to use "isequalwithequalnans" in your testsuite instead of "isequal" for this problem
Now, I have changed the assert statement
Example is wrong. Input vector x must be
x = [1; 2; 3; 4; 5; 6]
not
x = [1; 2; 3; 4; 5; 6; 7; 8]
Thanks Massimo. Changed it
I believe in tests 3&4 you may be missing a 3 here and there?
That's right, I have fixed it too
Make the vector [1 2 3 4 5 6 7 8 9 10]
35547 Solvers
Determine whether a vector is monotonically increasing
11916 Solvers
17120 Solvers
Convert a numerical matrix into a cell array of strings
455 Solvers
Change the first and last diagonal element of the identity matrix to zero
117 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!