Formula basic fitting curve Matlab
6 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
采纳的回答
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 个评论
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 Center 和 File Exchange 中查找有关 Fit Postprocessing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!