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]
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
Back to basics 12 - Input Arguments
Output any real number that is neither positive nor negative
Saving MATLAB session to a file
Sum the numbers on the main diagonal
The sum of the numbers in the vector
Hexagonal numbers on a spiral matrix
Create initial basic feasible solution for transportation problems - North-West Corner Method
unique with nan
Find a real root of a quintic function without using roots function
Net Present Value of a Stream of Cash Flows
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office