FIt ellipse to data in polar coordinates

9 views (last 30 days)
Lena Heffern
Lena Heffern on 12 Oct 2011
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];

Answers (1)

Dr. Seis
Dr. Seis on 12 Oct 2011
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.

Categories

Find more on Curve Fitting Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!