Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3 4; 5 6 7 8;8 10, 12, -2;-1 -3 -5,-7];
y_correct = 20;
assert(isequal(matrix_manipulation(x),y_correct))
|
2 | Pass |
x = ones(5).*3
y_correct = 15;
assert(isequal(matrix_manipulation(x),y_correct))
x =
3 3 3 3 3
3 3 3 3 3
3 3 3 3 3
3 3 3 3 3
3 3 3 3 3
|
3 | Pass |
a=[3,2,5]
x = [a;a;a];
y_correct = 10;
assert(isequal(matrix_manipulation(x),y_correct))
a =
3 2 5
|
4 | Pass |
x = [-5,25,-10;8,-18,10;-2,7,-1]
y_correct = -30;
assert(isequal(matrix_manipulation(x),y_correct))
x =
-5 25 -10
8 -18 10
-2 7 -1
|
6283 Solvers
1143 Solvers
216 Solvers
Find the index of n in magic(n)
160 Solvers
615 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!