Generate concentric square rings of alternating 1s and 0s to form a layered mandala-style matrix.
e.g. N = 5;
1 1 1 1 1;
1 0 0 0 1;
1 0 1 0 1;
1 0 0 0 1;
1 1 1 1 1

Solution Stats

20 Solutions

13 Solvers

Last Solution submitted on Mar 19, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers13

Suggested Problems

More from this Author19

Problem Tags

Community Treasure Hunt

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

Start Hunting!