Euclidian projection on ellipsoid and conic

版本 1.4.0.0 (31.0 KB) 作者: Bruno Luong
Projecting a point on ellipsoid or conic in n-dimensional space
1.1K 次下载
更新时间 2010/5/25

查看许可证

Find the projection of point P in R^n on the ellipsoid

E = { x = x0 + U*(z.*radii) : |z| = 1 }, where U is orthogonal matrix of the orientation of E, radii are the axis lengths, and x0 is the center.

Or on generalized conic E = { x : x'*A*x + b'*x + c = 0 }.

The projection is the minimization problem:
min | x - P | (or max | x - P|) for x in E.

Method: solve the Euler Lagrange equation with respect to the Lagrange multiplier, which can be written as polynomial equation (from an idea by Roger Stafford)

引用格式

Bruno Luong (2025). Euclidian projection on ellipsoid and conic (https://ww2.mathworks.cn/matlabcentral/fileexchange/27711-euclidian-projection-on-ellipsoid-and-conic), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2010a
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.4.0.0

Fix a bug, Introducing an adjustable tolerance value for parabola detection

1.3.0.0

Cosmetic changes + Script for test example for 2D conic projection

1.2.0.0

Extend to generalized conic (ellipsoid, paraboloid, hyperboloid, etc...)

1.0.0.0