Formula basic fitting curve Matlab

8 visualizaciones (últimos 30 días)
Dion Theunissen
Dion Theunissen el 7 de Jul. de 2021
Comentada: LO el 7 de Jul. de 2021
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?

Respuesta aceptada

LO
LO el 7 de Jul. de 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.
https://de.mathworks.com/help/matlab/ref/polyfit.html
  2 comentarios
Dion Theunissen
Dion Theunissen el 7 de Jul. de 2021
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 el 7 de Jul. de 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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interpolation en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by