FIt ellipse to data in polar coordinates
이전 댓글 표시
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];
답변 (1개)
Dr. Seis
2011년 10월 12일
0 개 추천
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.
카테고리
도움말 센터 및 File Exchange에서 Polar Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!