MATLAB: Matlab code for generating rectangle shapes

rectangle

How can I draw a rectangle below another one in the same figure?

Best Answer

axis([0 10 0 10])
rectangle('Position',[1 2 5 6])
rectangle