Formula basic fitting curve Matlab

6 vues (au cours des 30 derniers jours)
Dion Theunissen
Dion Theunissen le 7 Juil 2021
Commenté : LO le 7 Juil 2021
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?

Réponse acceptée

LO le 7 Juil 2021
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.
  2 commentaires
LO le 7 Juil 2021
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

Connectez-vous pour commenter.

Plus de réponses (0)


En savoir plus sur Get Started with Curve Fitting Toolbox dans Help Center et File Exchange




Community Treasure Hunt

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

Start Hunting!

Translated by