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'.
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 (2023). 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 LinuxCategories
Find more on Surfaces, Volumes, and Polygons in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |