This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 5;
y_correct = [25 24 23 22 21;10 9 8 7 20;11 2 1 6 19;12 3 4 5 18;13 14 15 16 17];
assert(isequal(your_fcn_name(n),y_correct))
|
Find the sum of all the numbers of the input vector
31961 Solvers
895 Solvers
Get the length of a given vector
3566 Solvers
Create an n-by-n null matrix and fill with ones certain positions
269 Solvers
139 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!