i though this would simply worked by isequal function, but its not for the 2nd test suite, why its happening?
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1:10];
y = x;
z = true;
assert(isequal(are_equal(x,y),z));
|
2 | Fail |
%%
x = [1:10 NaN];
y = x;
z = true;
assert(isequal(are_equal(x,y),z));
Error: Assertion failed.
|
3 | Pass |
%%
x = [2 4 6 NaN 8];
y = [2 4 NaN 6 8];
z = false;
assert(isequal(are_equal(x,y),z));
|
Make the vector [1 2 3 4 5 6 7 8 9 10]
35545 Solvers
Output any real number that is neither positive nor negative
316 Solvers
559 Solvers
Flip the vector from right to left
2665 Solvers
2616 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!