12.3k views
0 votes
Using what you have learned about conditional statements and loops, create a 3-page matrix with the same 2-D dimensions as your drawing. For example, Dr. Skurla’s matrix was a 15 x 15 x 3 matrix.

User Jesperlind
by
7.3k points

1 Answer

6 votes

Answer:

x = 3; a=2; b=7;

if x>b

x = b;

elseif x<a

x = a^2;

else

x = x^3;

end

User Rbm
by
8.2k points