12.07.2015 Views

What Is Optimization Toolbox?

What Is Optimization Toolbox?

What Is Optimization Toolbox?

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

lsqcurvefitPurposeEquationSolve nonlinear curve-fitting (data-fitting) problems in least-squaressenseFind coefficients x that best fit the equationgiven input data xdata, and the observed output ydata, wherexdata andydata are vectors of length m and F (x, xdata) is a vector-valued function.The function lsqcurvefit usesthesamealgorithmaslsqnonlin. Itspurpose is to provide an interface designed specifically fordata-fittingproblems.SyntaxDescriptionx = lsqcurvefit(fun,x0,xdata,ydata)x = lsqcurvefit(fun,x0,xdata,ydata,lb,ub)x = lsqcurvefit(fun,x0,xdata,ydata,lb,ub,options)[x,resnorm] = lsqcurvefit(...)[x,resnorm,residual] = lsqcurvefit(...)[x,resnorm,residual,exitflag] = lsqcurvefit(...)[x,resnorm,residual,exitflag,output] = lsqcurvefit(...)[x,resnorm,residual,exitflag,output,lambda] = lsqcurvefit(...)[x,resnorm,residual,exitflag,output,lambda,jacobian] = lsqcurvefit(...)lsqcurvefit solves nonlinear data-fitting problems. lsqcurvefitrequires a user-defined function to compute the vector-valued functionF (x, xdata). The size of the vector returned by the user-defined functionmust be the same as the size of the vectors ydata and xdata.x = lsqcurvefit(fun,x0,xdata,ydata) starts at x0 and findscoefficients x to best fit the nonlinear function fun(x,xdata) to thedata ydata (in the least-squares sense). ydata mustbethesamesizeasthe vector (or matrix) F returned by fun.8-141

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!