Problem 45210. another bullseye

create matrix like below --

for x=2,

y=[1     1     1     1     1;
   1     2     2     2     1;
   1     2     3     2     1;
   1     2     2     2     1;
   1     1     1     1     1]  . 
for x=3, 
y=[1     1     1     1     1     1     1     1     1;
   1     2     2     2     2     2     2     2     1;
   1     2     3     3     3     3     3     2     1;
   1     2     3     4     4     4     3     2     1;
   1     2     3     4     5     4     3     2     1;
   1     2     3     4     4     4     3     2     1;
   1     2     3     3     3     3     3     2     1;
   1     2     2     2     2     2     2     2     1;
   1     1     1     1     1     1     1     1     1]

Solution Stats

40.0% Correct | 60.0% Incorrect
Last Solution submitted on Dec 11, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers18

Suggested Problems

More from this Author165

Problem Tags

Community Treasure Hunt

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

Start Hunting!