Problem 51122. Arrow!!
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
Rafael S.T. Vieira
on 5 Nov 2022
What a weird-looking arrow. It would be more interesting if you asked for a Redheffer matrix.
Solution Comments
Show commentsProblem Recent Solvers28
Suggested Problems
-
1332 Solvers
-
Remove the two elements next to NaN value
693 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
588 Solvers
-
845 Solvers
-
Return fibonacci sequence do not use loop and condition
846 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!