Simple ellipse plotting function

Version 1.0.0.0 (1.22 KB) by Frouke
Plots a filled ellipse in a certain orientation using Matlab's 'patch'.
1.6K Downloads
Updated 10 Oct 2010

View License

function plot_ellipse(a,b,cx,cy,angle,color)
%a: width in pixels
%b: height in pixels
%cx: horizontal center
%cy: vertical center
%angle: orientation ellipse in degrees
%color: color code (e.g., 'r' or [0.4 0.5 0.1])

Cite As

Frouke (2026). Simple ellipse plotting function (https://www.mathworks.com/matlabcentral/fileexchange/28996-simple-ellipse-plotting-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Surfaces, Volumes, and Polygons in Help Center and MATLAB Answers
Tags Add Tags
Version Published Release Notes
1.0.0.0