Borrar filtros
Borrar filtros

Fit and Polyfit (LAR vs. Least squares)

47 visualizaciones (últimos 30 días)
sks
sks el 4 de Jul. de 2013
I am trying to better understand the difference between fit and polyfit. Am I right to think that fit for polynomials still uses the least absolute residual robust (LAR) method rather than the least squares method (polyfit)?

Respuesta aceptada

Guru
Guru el 4 de Jul. de 2013
You can find out by asking for the output argument:
[fitobject,gof,output] = fit(x,y,fitType)
output.algorithm
But the real difference between fit and polyfit are the options that you can choose as well as polyfit is strictly limited to polynomials and uses the least squares method.

Más respuestas (0)

Categorías

Más información sobre Get Started with Curve Fitting Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by