Create an N×N binary matrix that forms a filled diamond shape centered in the matrix. The diamond expands symmetrically toward the center row and contracts afterward, creating a visually pleasing mandala-style pattern.
Example (N = 5):
11011
10001
00000
10001
11011

Solution Stats

29 Solutions

16 Solvers

Last Solution submitted on Jun 02, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers16

Suggested Problems

More from this Author39

Problem Tags

Community Treasure Hunt

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

Start Hunting!