Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [1:10];
y = x;
z = true;
assert(isequal(are_equal(x,y),z));
x =
Columns 1 through 7
1.00 2.00 3.00 4.00 5.00 6.00 7.00
Columns 8 through 10
8.00 9.00 10.00
y =
Columns 1 through 7
1.00 2.00 3.00 4.00 5.00 6.00 7.00
Columns 8 through 10
8.00 9.00 10.00
|
2 | Pass |
%%
x = [1:10 NaN];
y = x;
z = true;
assert(isequal(are_equal(x,y),z));
x =
Columns 1 through 7
1.00 2.00 3.00 4.00 5.00 6.00 7.00
Columns 8 through 11
8.00 9.00 10.00 0
y =
Columns 1 through 7
1.00 2.00 3.00 4.00 5.00 6.00 7.00
Columns 8 through 11
8.00 9.00 10.00 0
|
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.00 4.00 6.00 0 8.00
y =
2.00 4.00 0 6.00 8.00
|
701 Solvers
390 Solvers
400 Solvers
Side of an equilateral triangle
2598 Solvers
2624 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!