M-File Help: plot_box

M-File Help: plot_box | View code for plot_box

# plot_box

a box

plot_box(b, ls) draws a box defined by b=[XL XR; YL YR] on the current plot with optional MATLAB linestyle options ls.

plot_box(x1,y1, x2,y2, ls) draws a box with corners at (x1,y1) and (x2,y2), and optional MATLAB linestyle options ls.

plot_box('centre', P, 'size', W, ls) draws a box with center at P=[X,Y] and with dimensions W=[WIDTH HEIGHT].

plot_box('topleft', P, 'size', W, ls) draws a box with top-left at P=[X,Y] and with dimensions W=[WIDTH HEIGHT].

## Notes

- The box is added to the current plot.
- Additional options LS are MATLAB LineSpec options and are passed to PLOT.

## See also

plot_poly, plot_circle, plot_ellipse

© 1990-2014 Peter Corke.