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 Solvers29
Suggested Problems
-
Test if two numbers have the same digits
267 Solvers
-
377 Solvers
-
ベクトル [1 2 3 4 5 6 7 8 9 10] の作成
602 Solvers
-
Convert given decimal number to binary number.
2349 Solvers
-
Return fibonacci sequence do not use loop and condition
870 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.