Create a spiral matrix ( clock-wise direction ) of size n.

Try to do that without using the built-in function.

Solution Stats

42 Solutions

23 Solvers

Last Solution submitted on Jul 22, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers23

Suggested Problems

More from this Author174

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!