Make a square matrix with this shape. For n=4
M =
1 1 0 0
1 0 1 0
0 1 0 1
0 0 1 1
Solution Stats
Problem Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers307
Suggested Problems
-
Project Euler: Problem 3, Largest prime factor
1785 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
554 Solvers
-
Return elements unique to either input
807 Solvers
-
324 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1713 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!