Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = randi(10,5,5);
y=elmex(x)
assert(isequal(y(1),x(6)))
y =
6 3 7 5 5 6 8 3 10 6 10 2 7 3 4 1 8 4 10 2
|
2 | Pass |
x = [0 1 2 3;12 15 5 62;3 0 0 9;17 89 6 1];
y_correct = [1 2 3 12 5 62 3 0 9 17 89 6];
assert(isequal(elmex(x),y_correct))
|
3 | Pass |
x = ones(6,6);
y_correct = ones(1,30);
assert(isequal(elmex(x),y_correct))
|
205 Solvers
Sum of diagonal of a square matrix
1159 Solvers
Determine the number of odd integers in a vector
320 Solvers
07 - Common functions and indexing 6
282 Solvers
145 Solvers