FIt ellipse to data in polar coordinates
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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];
0 comentarios
Respuestas (1)
Dr. Seis
el 12 de Oct. de 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.
0 comentarios
Ver también
Categorías
Más información sobre Curve Fitting Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!