Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3; 4 5 6]
y_correct = 6;
assert(isequal(your_fcn_name(x),y_correct))
x =
1 2 3
4 5 6
|
2 | Pass |
x = [1 2 3; 4 5 7]
y_correct = 7;
assert(isequal(your_fcn_name(x),y_correct))
x =
1 2 3
4 5 7
|
Flip the main diagonal of a matrix
506 Solvers
400 Solvers
07 - Common functions and indexing 1
338 Solvers
101 Solvers
129 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!