Which method is MATLAB use in poly2 to do a curve fitting?
Mostra commenti meno recenti
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');
Risposta accettata
Più risposte (2)
David Hill
il 11 Giu 2020
1 voto
See Polynomial Models in Matlab documentation
3 Commenti
Yaser Khojah
il 11 Giu 2020
David Hill
il 11 Giu 2020
Did you look at:
help fitoptions;
Yaser Khojah
il 11 Giu 2020
Rafael Hernandez-Walls
il 11 Giu 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 Commento
Yaser Khojah
il 11 Giu 2020
Categorie
Scopri di più su Get Started with Curve Fitting Toolbox in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!