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
-
7135 Solvers
-
430 Solvers
-
224 Solvers
-
4677 Solvers
-
Return fibonacci sequence do not use loop and condition
439 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!