Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x =[1+2i; 3-7i; 2i; 6];
y_correct = [1+2i, 3-7i, 2i, 6];
assert(isequal(T(x),y_correct))
y =
0 0 0 6
|
2 | Fail |
x =[-2i -7i -2i -6i];
y_correct =[-2i; -7i; -2i; -6i;];
assert(isequal(T(x),y_correct))
y =
0.0000 + 0.0000i
0.0000 + 0.0000i
0.0000 + 0.0000i
0.0000 - 6.0000i
|
3 | Fail |
x =[1 2; 3 4;];
y_correct =[1 3; 2 4;];
assert(isequal(T(x),y_correct))
y =
0 0
0 4
|
4 | Fail |
x =[100+200i 3-4i 8-7.5i; 0.2+3i 0.005-0.23i -4];
y_correct =[100+200i 0.2+3i; 3-4i 0.005-0.23i; 8-7.5i -4;];
assert(isequal(T(x),y_correct))
y =
0 0
0 0
0 -4
|
Back to basics 21 - Matrix replicating
1052 Solvers
Determine Whether an array is empty
646 Solvers
277 Solvers
Cell Counting: How Many Draws?
581 Solvers
548 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!