Find ellipse area

版本 1.0.0.0 (568 字节) 作者: Samuel Cheng
A simple code to find the area of an ellipse from its quadratic equation
433.0 次下载
更新时间 2014/3/7

查看许可证

A "potential" ellipse is described by the coefficients of its quadratic equation.
a x^2 + b xy + c y^2 + d x + e y + f = 0
the vector of coefficients, [a, b, c, d, e, f] should be used as the input.

For example, for a circle, x^2 + y^2 - 1 =0, the input should be [1 0 1 0 0 -1]. And find_ellipse_area([1 0 1 0 0 -1]) will return pi, the area of the circle.

If the quadratic equation doesn't represent an eclipse (for example, a hyperbola, instead), the function will return NaN.

引用格式

Samuel Cheng (2024). Find ellipse area (https://www.mathworks.com/matlabcentral/fileexchange/45787-find-ellipse-area), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Quadratic Programming and Cone Programming 的更多信息
标签 添加标签

Community Treasure Hunt

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

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