M-File Help: plot_ellipse_inv | View code for plot_ellipse_inv

# plot_ellipse_inv

Draw an ellipse or ellipsoid

plot_ellipse_inv(a, options) draws an ellipse defined by X'.inv(a).X = 0 on the current plot, centred at the origin.

plot_ellipse_inv(a, 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_inv(a, C, options) as above but return graphic handle.

## Options

'edgecolor' | the color of the circle's edge, Matlab color spec
'fillcolor' | the color of the circle's interior, Matlab color spec
'alpha' | transparency of the filled circle: 0=transparent, 1=solid
'alter', H | alter existing circles with handle H

## Notes

- For the case where the inverse of ellipse parameters are known, perhaps an inverse covariance matrix.
- If A (2x2) draw an ellipse, else if A(3x3) draw an ellipsoid.
- The ellipse is added to the current plot.

## See also

plot_ellipse, plot_circle, plot_box, plot_poly

© 1990-2014 Peter Corke.