how can I draw this shape using MATLAB (loops) MATLABONLY!!Question 2 Show transcribed image text Question 2
Answer
for i=1:5 for j=1:5 if j == 1 || j == 5 || i == j || i == 6-j fprintf(“* “) else fprintf(” “) end end
OR
OR
how can I draw this shape using MATLAB (loops) MATLABONLY!!Question 2 Show transcribed image text Question 2
Answer
for i=1:5 for j=1:5 if j == 1 || j == 5 || i == j || i == 6-j fprintf(“* “) else fprintf(” “) end end