From: Peter Perkins on 16 Mar 2010 10:48 On 3/16/2010 7:30 AM, yasin level wrote: > I am wroking on a problem that requires me to use the nonlinear > regression for estimation parameters. > I have 3 parameters in my equation: > x=a+b.exp(-ct) > I have data x and t > I need matlab code for fitting and estimation of my parameters with coef > of regression. Yasin, there are functions in the Statistics and Optimization Toolboxes specifically designed for nonlinear regression: NLINFIT and LSQCURVEFIT. The Curve Fitting Toolbox is an entire product designed to do nonlinear regression. If you don't have access to any of those, you can use FMINSEARCH to minimize an objective function that is the sum of squared errors for you regression. I imagine there are also tools available on the MATLAB Central File Exchange. Hope this helps. |