www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/DrawRectangleExample.m

    %% Draw Rectangle
% Draw a rectangle that has a lower left corner at the point (1,2). Make
% the width of the rectangle 5 units and the height 6 units. Then, change
% the axis limits.

% Copyright 2015 The MathWorks, Inc.



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