Find the centre and the radius of the circle or ellipse

조회 수: 24 (최근 30일)
Khoder Makkawi
Khoder Makkawi 2023년 3월 20일
편집: Matt J 2023년 3월 20일
I have these 3D data (attached) which represents the points of an ellipse or a circle (it is not exactly a circle).
How can I find the centre and the radius of this ellipse ?

채택된 답변

Matt J
Matt J 2023년 3월 20일
편집: Matt J 2023년 3월 20일
You can download this,
and use ellipticalFit().
load('ellipse_circle_3Ddata.mat')
pFit=planarFit(data);
eFit=ellipticalFit(pFit.project2D(data))
Center3D=pFit.unproject3D(eFit.center(:))'
efit =
ellipticalFit with properties:
center: [1.9450e+05 7.1093e+04]
a: 2.6560e+07
b: 2.6559e+07
angle: 15.8694
Center3D =
1.0e+05 *
-1.2707 1.6117 -0.2764

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by