Simple ellipse plotting function

Plots a filled ellipse in a certain orientation using Matlab's 'patch'.

You are now following this Submission

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 .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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