Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = [1 2 3 4 5 6 7];
y = [5 6 7 2];
assert(isequal(extract_elements(x),y))
|
2 | Pass |
x = [3 7 12 9 4 2 8 3 2 1];
y = [4 2 8 7];
assert(isequal(extract_elements(x),y))
|
3 | Pass |
x = [12.2 16.5 13.2 2.5 9.7 7.6 3.1 1.4];
y = [9.7 7.6 3.1 16.5];
assert(isequal(extract_elements(x),y))
|
Back to basics 21 - Matrix replicating
1052 Solvers
Flip the main diagonal of a matrix
506 Solvers
Vectorize the digits of an Integer
269 Solvers
484 Solvers
Back to basics - mean of corner elements of a matrix
297 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!