Create a rectangle object, and use the axis function to change the axes so that you can see the rectangle easily. Change the Position, Curvature, EdgeColor, LineStyle, and LineWidth. Experiment with different values for the Curvature
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:12| Question number:20.12
All Answers
total answers (1)
Ch12Ex20.m
% Experiment with a rectangle object and properties
rhand = rectangle;
axis([-1 2 -1 2])
set(rhand, 'Position', [-0.5, -0.5, 1, 1], ...
'Curvature', [0.3, 0.4], 'EdgeColor', 'blue', ...
'LineStyle', ':', 'LineWidth', 4)
title('Rectangle object')
need an explanation for this answer? contact us directly to get an explanation for this answer