Lsqcurvefit for 2 parameters
Ältere Kommentare anzeigen
I read over the lsqcurvefit for one parameter.
x=lsqcurvefit(fun,xo,xdata,ydata)
where xo= initial x,
fun is the function to calculate xdata at xo.
I have 2 parameters needs to adjust to get xdata
let say xo,yo are two initial conditions. fun is the function to calculate xdata at xo,yo
How do I use lsqcurvefit to find the right x,y values.
For example:
xdata=[ 1 2]; ydata=[0.9 1.5];
Initial guess xo=1, yo=10^-4
fun: is the function which I dont know the specific form and that is my code to calculate xdata based on xo,yo.
Now I want to find the correct xo,yo.
I could not access the link that you gave.
1 Kommentar
Sean de Wolski
am 19 Nov. 2013
Can you provide an actual example of what you have?
The documentation gives some examples of using lsqcurvefit.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Nonlinear Least Squares (Curve Fitting) finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!