Make a cross from "1" in odd size array. Other value from array should be equal to "0"; As input you get length of side of array; x=3;

y=[ 0 1 0; 
    1 1 1;
    0 1 0];

please pay attention input will be always odd nubmer greater than 1;

Solution Stats

304 Solutions

192 Solvers

Last Solution submitted on Dec 04, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers192

Suggested Problems

More from this Author12

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!