Plot an ellipse in "center form"

版本 1.0.0.0 (2.1 KB) 作者: Nima Moshtagh
Draws 2D and 3D ellipses that are given in "center form".
7.8K 次下载
更新 2007/11/16

查看许可证

Ellipse_plot(A,c)

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)
figure
plot3(P(1,:),P(2,:),P(3,:),'*')
hold on
Ellipse_plot(A,C)

引用格式

Nima Moshtagh (2026). Plot an ellipse in "center form" (https://ww2.mathworks.cn/matlabcentral/fileexchange/13844-plot-an-ellipse-in-center-form), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Computational Geometry 的更多信息
版本 已发布 发行说明
1.0.0.0

The help section of the function was edited.