Generate an hourglass shape using matrix geometry and symmetry.
e.g. N = 5;
1 1 1 1 1;
0 1 1 1 0;
0 0 1 0 0;
0 1 1 1 0;
1 1 1 1 1;
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers4
Suggested Problems
-
4 Solvers
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!