Fit data to part of an ellipse

7 visualizzazioni (ultimi 30 giorni)
nk1129
nk1129 il 10 Ago 2019
Modificato: Bruno Luong il 10 Ago 2019
Hi - I have part of a data set that I'm trying to fit to a semi-oval whose major axis is along the x-axis. All of the functions I have found for generating an ellipse fit only work for complete ellipses. I have found an example that does what I need but for circles, and haven't been able to find one for ellipses. If anyone has code for this I'd appreciate it. Otherwise if anyone can explain how to adjust either the circle code or ellipsefit code to make it work for my situation (I'm a scientist trying to analyze data, the math behind this is confusing me a little). Heres a pic of my data for reference:
Screen Shot 2019-08-09 at 10.33.36 PM.png

Risposte (1)

Bruno Luong
Bruno Luong il 10 Ago 2019
Modificato: Bruno Luong il 10 Ago 2019
Arbitrary oriented elllipse in this thread
If you want ellipse aligned with x/y you need to remove the cross term xc.*yc (or force P(3)==0) in the code.
Honestly your data doesn't look like an aligned ellipse.

Categorie

Scopri di più su Polynomials in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by