Generate an N×N matrix with diagonals highlighted to form an artistic X-shaped mandala pattern.
e.g. N = 5;
1 0 0 0 1;
0 1 0 1 0;
0 0 1 0 0;
0 1 0 1 0;
1 0 0 0 1;

Solution Stats

44 Solutions

27 Solvers

Last Solution submitted on Nov 26, 2026

Last 200 Solutions

Solution Comments

Show comments
Loading...

Problem Recent Solvers27

Suggested Problems

More from this Author51

Problem Tags

Community Treasure Hunt

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

Start Hunting!