Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1:10;
y = [1 3 5 7 9];
assert(isequal(everyOther(x), y))
y =
1 3 5 7 9
|
2 | Pass |
x = [1 3 2 4 3 5];
y = [1 2 3];
assert(isequal(everyOther(x), y))
y =
1 2 3
|
3 | Pass |
x = [5 9 3 2 2 0 -1];
y = [5 3 2 -1];
assert(isequal(everyOther(x), y))
y =
5 3 2 -1
|
753 Solvers
Flip the main diagonal of a matrix
506 Solvers
Find out total non zero element of matrix
193 Solvers
259 Solvers
60 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!