Plot an ellipse in "center form"

Draws 2D and 3D ellipses that are given in "center form".


Updated 16 Nov 2007

View License


This function draws an N-dimensional ellipse (N = 2,3) that is given in "center form":

(x - C)' A (x - C) <= 1

where C is the center of the ellipse, and A is an NxN positive definite symmetric matrix.

A and C could be the outputs of the function: "MinVolEllipse.m", which computes the minimum volume enclosing ellipsoid containing a set of points in an N-dimensional space. For example, you can use this function as follows:

P = rand(3,100);
t = 0.001;
[A , C] = MinVolEllipse(P, t)
hold on

Cite As

Nima Moshtagh (2023). Plot an ellipse in "center form" (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Computational Geometry in Help Center and MATLAB Answers

Inspired by: Minimum Volume Enclosing Ellipsoid

Inspired: fakenmc/amvidc, Ellipsoid Method

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

The help section of the function was edited.