Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1:10];
y = x;
z = true;
assert(isequal(are_equal(x,y),z));
x =
1 2 3 4 5 6 7 8 9 10
y =
1 2 3 4 5 6 7 8 9 10
ans =
logical
1
|
2 | Pass |
x = [1:10 NaN];
y = x;
z = true;
assert(isequal(are_equal(x,y),z));
x =
1 2 3 4 5 6 7 8 9 10 0
y =
1 2 3 4 5 6 7 8 9 10 0
ans =
logical
1
|
3 | Pass |
x = [2 4 6 NaN 8];
y = [2 4 NaN 6 8];
z = false;
assert(isequal(are_equal(x,y),z));
x =
2 4 6 0 8
y =
2 4 0 6 8
ans =
logical
0
|
607 Solvers
Back to basics 17 - white space
245 Solvers
Set the array elements whose value is 13 to 0
941 Solvers
232 Solvers
320 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!