Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 3;
y_correct = [1 2 3;2 3 2; 3 2 1];
assert(isequal(mirror_anti_diag(x),y_correct))
|
2 | Pass |
x = 1;
y_correct = [1];
assert(isequal(mirror_anti_diag(x),y_correct))
|
3 | Pass |
x = 4;
y_correct = [1 2 3 4; 2 3 4 3; 3 4 3 2; 4 3 2 1 ];
assert(isequal(mirror_anti_diag(x),y_correct))
|
Make the vector [1 2 3 4 5 6 7 8 9 10]
35565 Solvers
1163 Solvers
257 Solvers
5117 Solvers
07 - Common functions and indexing 6
348 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!