This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = magic(5);
y_correct = [ 10 12 19 21 3
11 18 25 2 9
17 24 1 8 15
23 5 7 14 16
4 6 13 20 22];
assert(isequal(your_fcn_name(x),y_correct))
|
Select every other element of a vector
20336 Solvers
Make an awesome ramp for a tiny motorcycle stuntman
334 Solvers
546 Solvers
2770 Solvers
Test Problem; Create a 5x5 array containing all ones
270 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!