Arrow!! - MATLAB Cody - MATLAB Central

Problem 51122. Arrow!!

Difficulty:Rate
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

51.85% Correct | 48.15% Incorrect
Last Solution submitted on May 08, 2025

Problem Comments

Solution Comments

Show comments
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
3

Problem Recent Solvers27

Suggested Problems

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!
Go to top of page