Which method is MATLAB use in poly2 to do a curve fitting?
Show older comments
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');
Accepted Answer
More Answers (2)
David Hill
on 11 Jun 2020
1 vote
See Polynomial Models in Matlab documentation
3 Comments
Yaser Khojah
on 11 Jun 2020
David Hill
on 11 Jun 2020
Did you look at:
help fitoptions;
Yaser Khojah
on 11 Jun 2020
Rafael Hernandez-Walls
on 11 Jun 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 Comment
Yaser Khojah
on 11 Jun 2020
Categories
Find more on Get Started with Curve Fitting Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!