Adds ellipses to the current plot
Updated 16 Mar 2021

View License

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 (2024). ellipse.m (https://www.mathworks.com/matlabcentral/fileexchange/289-ellipse-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Inspired: psharma15/get-mve, justinblaber/image_match

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Revised the comments section to respond to user suggestions.

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