M-File Help: plot_ellipse | View code for plot_ellipse |
Draw an ellipse or ellipsoid
plot_ellipse(E, options) draws an ellipse or ellipsoid defined by X'EX = 0 on the current plot, centred at the origin. E (2x2) for an ellipse and E (2x3) for an ellipsoid.
plot_ellipse(E, C, options) as above but centred at C=[X,Y]. If C=[X,Y,Z] the ellipse is parallel to the XY plane but at height Z.
H = plot_ellipse(E, C, options) as above but return graphic handle.
First draw the ellipse and keep its graphic handle, then alter it, eg.
H = PLOT_ELLIPSE(E, C, 'r') PLOT_ELLIPSE(C, R, 'alter', H);
'confidence', C | confidence interval, range 0 to 1 |
'alter', H | alter existing ellipses with handle H |
'npoints', N | use N points to define the ellipse (default 40) |
'edgecolor' | color of the ellipse boundary edge, MATLAB color spec |
'fillcolor' | the color of the circle's interior, MATLAB color spec |
'alpha' | transparency of the fillcolored circle: 0=transparent, 1=solid |
'shadow' | show shadows on the 3 walls of the plot box |
plot_ellipse_inv, plot_circle, plot_box, plot_poly
© 1990-2014 Peter Corke.