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

6 Solutions

5 Solvers

Last Solution submitted on Feb 02, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers5

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!