Formula basic fitting curve Matlab

조회 수: 10 (최근 30일)
Dion Theunissen
Dion Theunissen 2021년 7월 7일
댓글: LO 2021년 7월 7일
Hi,
I am using the equation from the basic fitting function from matlab. I am using the cubic equation.
Is there a way to figure out how this equation is calculated? What is the formula to calculate p1 untill p4?

채택된 답변

LO
LO 2021년 7월 7일
This is an excerpt from the help page of the interactive fitting function you are using:
The polyfit function performs the transformation itself if you provide three return arguments when calling it:
[p,S,mu] = polyfit(x,y,n)
The returned regression parameters, p, now are based on normalized x. The returned vector, mu, contains the mean and standard deviation of x. For more information, see the polyfit reference page.
https://de.mathworks.com/help/matlab/ref/polyfit.html
  댓글 수: 2
Dion Theunissen
Dion Theunissen 2021년 7월 7일
Do you also know which parameter is used on which place? like p1 is normalized x, p2 is mu p3 is.... p4 is ....?
I want to include this formula in a script which will be calculated automaticly
LO
LO 2021년 7월 7일
well this you could test by using known values of x and y, or try typing "help polyfit"
if you type "open polyfit" you will see the function code.
hope it helps

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by