Problem 364. Matrix spiral
Solution Stats
Problem Comments
-
3 Comments
Nikolaos Nikolaou
on 13 Dec 2020
This one took me a while :)
Brandon
on 8 May 2023 at 19:12
Why are there 0's on the bottom row, and two columns of 0's on the left hand side?
Christian Schröder
on 9 May 2023 at 6:10
@Brandon the matrix has to be square, and, according to the problem statement, "has to have the same or more zeros than elevens". If you used e.g. A(1:end-1, 2:end) of the given A, (for n = 8), you'd fail the latter condition.
Solution Comments
Show commentsProblem Recent Solvers78
Suggested Problems
-
1835 Solvers
-
3864 Solvers
-
1065 Solvers
-
459 Solvers
-
471 Solvers
More from this Author1
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!