Thread Subject: non linear fitting tool

Subject: non linear fitting tool

From: Samoline1 Linke

Date: 6 Nov, 2009 08:32:03

Message: 1 of 4

Hi,

I have read the non linear fitting tool tutorial but could not understand it well. Is there someone who could just tell me the method with the following simple example

e.g.

x = [1 2 3 4 5]

y = [ 0.01 0.02 0.04 0.08 0.16 ]

If we do: scatter (x, y) we can see it would give a look of exponential function.

How can we fit an estimate curve in this graph? I think we need nlintool but how to deal with this data there?

Subject: non linear fitting tool

From: Samoline1 Linke

Date: 6 Nov, 2009 09:54:01

Message: 2 of 4

"Samoline1 Linke" <maganatewoman@yahoo.com> wrote in message <hd0mu3$i27$1@fred.mathworks.com>...
> Hi,
>
> I have read the non linear fitting tool tutorial but could not understand it well. Is there someone who could just tell me the method with the following simple example
>
> e.g.
>
> x = [1 2 3 4 5]
>
> y = [ 0.01 0.02 0.04 0.08 0.16 ]
>
> If we do: scatter (x, y) we can see it would give a look of exponential function.
>
> How can we fit an estimate curve in this graph? I think we need nlintool but how to deal with this data there?
-------------

ADDITION:

I think the formula would be like:

Y = b0 * exp ( b1 * x )

But how to apply it in nlintool?

Subject: non linear fitting tool

From: Tom Lane

Date: 6 Nov, 2009 21:54:46

Message: 3 of 4

> Y = b0 * exp ( b1 * x )
>
> But how to apply it in nlintool?

nlintool(x, y, @(p,x) p(1)*exp(p(2)*x), [.01 .2])

Subject: non linear fitting tool

From: Frederic Moisy

Date: 9 Nov, 2009 10:03:03

Message: 4 of 4

You can use the Ezyfit toolbox for this purpose,
http://www.mathworks.com/matlabcentral/fileexchange/10176-ezyfit-2-30
Have also a look to the example file, where
the fit of an exponential is illustrated:
http://www.mathworks.com/matlabcentral/fx_files/10176/3/content/ezyfit/demo/html/efdemo.html
Frederic


"Samoline1 Linke" <maganatewoman@yahoo.com> wrote in message <hd0mu3$i27$1@fred.mathworks.com>...
> Hi,
>
> I have read the non linear fitting tool tutorial but could not understand it well. Is there someone who could just tell me the method with the following simple example
>
> e.g.
>
> x = [1 2 3 4 5]
>
> y = [ 0.01 0.02 0.04 0.08 0.16 ]
>
> If we do: scatter (x, y) we can see it would give a look of exponential function.
>
> How can we fit an estimate curve in this graph? I think we need nlintool but how to deal with this data there?

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