What is the difference between polyfit and curve fitting
Mostra commenti meno recenti
Hi
What is the difference between polyfit and curve fitting ?
would you please see this page explain me these command:
modelFun = @(p,x) p(3) .* (x ./ p(1)).^(p(2)-1) .* exp(-(x ./ p(1)).^p(2));
startingVals = [10 2 5];
coefEsts = nlinfit(time, conc, modelFun, startingVals);
xgrid = linspace(0,20,100);
line(xgrid, modelFun(coefEsts, xgrid), 'Color','r');
And The Page Is:
1 Commento
Masoud Ghanbari
il 20 Mar 2013
Risposta accettata
Più risposte (1)
Matt J
il 20 Mar 2013
0 voti
POLYFIT applies to polynomial fitting only.
1 Commento
Armani
il 8 Gen 2024
That's correct! POLYFIT is a function specifically designed for fitting polynomial curves to data.
POLYFIT returns the coefficients of the fitted polynomial. These coefficients can be used to create the equation of the polynomial curve, getaway shootout can then be used for various purposes such as prediction, interpolation, or smoothing.
Categorie
Scopri di più su 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!