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
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com