Thread Subject: matlab code for nonlinear regression

Subject: matlab code for nonlinear regression

From: yasin level

Date: 14 Mar, 2010 21:36:10

Message: 1 of 6

I am wroking on a problem that requires me to use the nonlinear regression for estimation parameters.
I need matlab code?
Thanks

Subject: matlab code for nonlinear regression

From: TideMan

Date: 14 Mar, 2010 21:47:33

Message: 2 of 6

On Mar 15, 10:36 am, "yasin level" <pdf.a...@yahoo.fr> wrote:
> I am wroking on a problem that requires me to use the nonlinear regression for estimation parameters.
> I need matlab code?
> Thanks

To answer your question:
Yes, you need Matlab code.

As to what Matlab code you need, I cannot tell from the details you
have supplied.

Subject: matlab code for nonlinear regression

From: yasin level

Date: 14 Mar, 2010 22:24:06

Message: 3 of 6

"yasin level" <pdf.amir@yahoo.fr> wrote in message <hnjksa$dcr$1@fred.mathworks.com>...
> I am wroking on a problem that requires me to use the nonlinear regression for estimation parameters.
> I need matlab code?
> Thanks

I have 2 parameters in my equation for ex:
X = P1 P2 Y
I mesure data X and Y form experimental.
I need matlab code for fitting and estimation of my parameters with coef of regression.
thank you

Subject: matlab code for nonlinear regression

From: TideMan

Date: 14 Mar, 2010 23:50:36

Message: 4 of 6

On Mar 15, 11:24 am, "yasin level" <pdf.a...@yahoo.fr> wrote:
> "yasin level" <pdf.a...@yahoo.fr> wrote in message <hnjksa$dc...@fred.mathworks.com>...
> > I am wroking on a problem that requires me to use the nonlinear regression for estimation parameters.
> > I need matlab code?
> > Thanks
>
> I have 2 parameters in my equation for ex:
> X = P1 P2 Y
> I mesure data X and Y form experimental.
> I need matlab code for fitting and estimation of my parameters with coef of regression.
> thank you

That equation is linear, so you should able to solve it for P1*P2
using the method in your textbook.
But there are an infinite number of possibilities for P1 and P2.

Subject: matlab code for nonlinear regression

From: yasin level

Date: 16 Mar, 2010 11:30:26

Message: 5 of 6

 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.
Thanks

Subject: matlab code for nonlinear regression

From: Peter Perkins

Date: 16 Mar, 2010 14:48:01

Message: 6 of 6

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.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com