Problem 45479. Stairs
Make an n by n matrix, where the elements are ones and zeros. In the main diagonal, and under that, there should be only ones (representing a solid stair).
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers180
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
3059 Solvers
-
768 Solvers
-
920 Solvers
-
Sum of odd numbers in a matrix
614 Solvers
-
Find the dimensions of a matrix
556 Solvers
More from this Author3
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!