ellipse.m

Adds ellipses to the current plot

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Adds ellipses to the current plot. The ellipses are specified by the semimajor axis radius, the semiminor axis radius, the orientation of the semimajor axis with an angle from the x-axis, and the ellipse center. The color can specified and multiple ellipses can be plotted with the same call. Optionally returns handles to the lines used to plot the ellipse shapes.

Cite As

David Long (2026). ellipse.m (https://uk.mathworks.com/matlabcentral/fileexchange/289-ellipse-m), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: psharma15/get-mve, justinblaber/image_match

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.1.0

Revised the comments section to respond to user suggestions.

1.1.0.0

updated and corrected usage notes in documentation
set so that handles to ellipses are only returned when an output is specified

1.0.0.0