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));
|
5704 Solvers
Calculate the Levenshtein distance between two strings
456 Solvers
Arrange Vector in descending order
4080 Solvers
376 Solvers
Area of an equilateral triangle
2763 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!