Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3; 4 5 6;7 8 9];
y_correct = 40;
assert(isequal(AddMatrixLim(x),y_correct))
x =
1 2 3
4 0 6
7 8 9
ans =
40
|
2 | Pass |
x= [1 5 6 7; 4 9 4 7; 9 4 2 1; 0 1 2 8]
y_correct = 51;
assert(isequal(AddMatrixLim(x),y_correct))
x =
1 5 6 7
4 9 4 7
9 4 2 1
0 1 2 8
x =
1 5 6 7
4 0 0 7
9 0 0 1
0 1 2 8
ans =
51
|
Arrange Vector in descending order
4083 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
Output any real number that is neither positive nor negative
316 Solvers
260 Solvers
Replace every 3rd element in a vector with 4
170 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!