Which method is MATLAB use in poly2 to do a curve fitting?
Afficher commentaires plus anciens
I'm using fit function to conduct a curve fitting for my data and estimate its equation as below. Now I want to know which method is the MATLAB using. Is this based on lest square error or interpolation? I need more explanation to include this in my thesis. Anyone can help please. Thanks in advance.
[population2,gof] = fit(x,y,'poly2');
Réponse acceptée
Plus de réponses (2)
David Hill
le 11 Juin 2020
1 vote
See Polynomial Models in Matlab documentation
3 commentaires
Yaser Khojah
le 11 Juin 2020
David Hill
le 11 Juin 2020
Did you look at:
help fitoptions;
Yaser Khojah
le 11 Juin 2020
Rafael Hernandez-Walls
le 11 Juin 2020
% -- FT is a string or a FITTYPE specifying the model to fit.
%
% If FT is a string, then it may be:
%
% FITTYPE DESCRIPTION
% 'poly1' Linear polynomial curve
% 'poly11' Linear polynomial surface
% 'poly2' Quadratic polynomial curve
% 'linearinterp' Piecewise linear interpolation
% 'cubicinterp' Piecewise cubic interpolation
% 'smoothingspline' Smoothing spline (curve)
% 'lowess' Local linear regression (surface)
%
1 commentaire
Yaser Khojah
le 11 Juin 2020
Catégories
En savoir plus sur Get Started with Curve Fitting Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!