Write a script that will start with a rounded rectangle. Change both the x and y axes from the default to go from 0 to 3
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:12| Question number:22.12
All Answers
total answers (1)
Ch12Ex22.m
% Displays a series of rounded rectangles
posvec = [0.2, 0.2, 0.5, 0.8];
rh = rectangle('Position', posvec,...
'Curvature',[0.5, 0.5]);
axis([0 3 0 3])
set(rh,'Linewidth',3,'LineStyle',':')
for i = 1:10
posvec = posvec + 0.1;
rh = rectangle('Position', posvec,...
'Curvature',[0.5, 0.5]);
axis([0 3 0 3])
set(rh,'Linewidth',3,'LineStyle',':')
end
need an explanation for this answer? contact us directly to get an explanation for this answer