M-File Help: plot_box View code for plot_box

plot_box

a box on the current plot

plot_box(b, ls) draws a box defined by b=[XL XR; YL YR] 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].


 

© 1990-2012 Peter Corke.