FIt ellipse to data in polar coordinates
Ältere Kommentare anzeigen
So I have a set of data basically X=(pi/180).*[0:10:350], aka a full rotation in radians. Next, I have a set of data (36 total points) that map out an ellipse, but only when in polar coordinates. My question is how I can do a best-fit of an ellipse in polar to my data set. Any help is appreciated, its just for an undergrad optics lab. Thanks!
Y=[3 2 1 1 1 1 2 2 3 3 4 4 5 5 5 4 4 4 3 3 2 2 2 2 2.5 3 4 4 4.5 5 5 5 5 5 4 4];
Antworten (1)
Dr. Seis
am 12 Okt. 2011
0 Stimmen
You may want to try modifying the code I put up on:
The code in the link above will try to fit "x" and "y" data to a sine function. But you could very well replace the general form of a sine function with the general form of an ellipse to try to find those coefficients.
Let me know if you have any questions.
Kategorien
Mehr zu Curve Fitting Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!