This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
M = 1;
N = 1;
y_correct = [2];
assert(isequal(sumMyIndices(M,N),y_correct))
y =
2
|
2 | Pass |
%%
M = 1;
N = 2;
y_correct = [2,3];
assert(isequal(sumMyIndices(M,N),y_correct))
y =
2
y =
2 3
|
3 | Pass |
%%
M = 3;
N = 2;
y_correct = [2,3; 3 4; 4 5];
assert(isequal(sumMyIndices(M,N),y_correct))
y =
2
y =
2 3
y =
2 3
3 0
y =
2 3
3 4
y =
2 3
3 4
4 0
y =
2 3
3 4
4 5
|
Change the sign of even index entries of the reversed vector
213 Solvers
262 Solvers
143 Solvers
Matlab Basics II - Count rows in a matrix
178 Solvers
Test Problem; Create a 5x5 array containing all ones
198 Solvers