Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 1;
assert(isequal(bullseye(x),y_correct))
|
2 | Pass |
x = 3;
y_correct = [3 2 3; 2 1 2; 3 2 3];
assert(isequal(bullseye(x),y_correct))
|
3 | Pass |
x = 5;
y_correct = [5 4 3 4 5; 4 3 2 3 4; 3 2 1 2 3; 4 3 2 3 4; 5 4 3 4 5];
assert(isequal(bullseye(x),y_correct))
|
Getting the indices from a vector
3206 Solvers
The Answer to Life, the Universe, and Everything
383 Solvers
436 Solvers
484 Solvers
1096 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!