Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
a = [3 2 4];
y_correct = [1 1 1;2 2 2;3 0 3;0 0 4];
assert(isequal(matInc(a),y_correct))
|
2 | Pass |
%%
a = [0 1 1 2 0 3];
y_correct = [0 1 1 1 0 1;0 0 0 2 0 2;0 0 0 0 0 3];
assert(isequal(matInc(a),y_correct))
|
1092 Solvers
280 Solvers
Flag largest magnitude swings as they occur
582 Solvers
314 Solvers
498 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!