Best fit of ellipse equation to given data
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Serg
am 27 Dez. 2020
Kommentiert: Bruno Luong
am 12 Jan. 2021
Hello everyone,
For the given ellipse equation denoted as follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/471482/image.png)
with additional parameters of mc and PIc to include a rotation of the ellipse:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/471487/image.png)
I need to find
- a and b (semi-major and semi-minor axes),
- y0 and x0 (center coordinates), and
- theta(rotation angle)
to have best fitted ellipse into my data which is give in the form of PI = f(m) with around 5-8 test points per dataset.
Given the fact that my data has various shapes I do not expect the ellipse to be very precise, but still I would like the best I can get out of this method. I have tried to achieve that with Curve Fitting app, using Custom Equation option, but the equation I have put into it was too complex (some errors occurred).
Can you please advice, what would be the most convenient way to achieve my goal?
Kind Regards
0 Kommentare
Akzeptierte Antwort
Bruno Luong
am 27 Dez. 2020
There is one implementation I posted here
5 Kommentare
Bruno Luong
am 12 Jan. 2021
"Just to assure myself:
- "radii" contains semi-major and semi-minor axes;
- "xc" and "yc" are center points;
- "U" contains trygonometric functions of rotation angle;
Is that correct?"
Yes, you correctly understand.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!