Write a script that gives (( follow the example))
if x=4 & output=
1 1 1 1
1 1 0 1
1 0 1 0
1 0 0 1
& x=5 then output=
[1 1 1 1 1
1 1 0 1 0
1 0 1 0 0
1 0 0 1 0
1 0 0 0 1]
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers28
Suggested Problems
-
Back to basics 11 - Max Integer
807 Solvers
-
Back to basics 21 - Matrix replicating
1788 Solvers
-
Relative ratio of "1" in binary number
1592 Solvers
-
Sort the vector with the given index
125 Solvers
-
2484 Solvers
More from this Author5
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
What a weird-looking arrow. It would be more interesting if you asked for a Redheffer matrix.