필터 지우기
필터 지우기

circle least square method

조회 수: 2 (최근 30일)
Josefina Ottitsch
Josefina Ottitsch 2019년 4월 19일
답변: Jim Riggs 2019년 4월 19일
Hello
I have already looked into the info on the least square method in matlab, but I do not understand how I'm supposed to program the code.
If I have a function similar to this:
x=0:.1:2
f=sin(x)
plot(sin(x))
hold on
How do I create a circle in my figure, which fits within 3 points on my function by using the least square method?
thanks for the support!

답변 (1개)

Jim Riggs
Jim Riggs 2019년 4월 19일
You don't need to use least squares to "fit" a circle to 3 points, because 3 points will uniquely define a single circle.
See the attached paper.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by