Curve fitting in Matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi all
I am trying to do a curve fit following an example found on the net.
below is the code..Can someone explain the code below please.
especially A= params(1) and lamda=params(2) what are they doing (what is params?)
function sse=myfit(params,Input,Actual_Output)
A=params(1);
lamda=params(2);
Fitted_Curve=A.*exp(-lamda*Input);
Error_Vector=Fitted_Curve - Actual_Output;
it might be a stupid question but I just dont know
0 Kommentare
Antworten (1)
Doug Hull
am 24 Aug. 2012
params seems to be an input to the function. The code is pulling out specific values of that input and naming them something more intuitive.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Interpolation finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!