Thread Subject: Curve Fitting Toolbox

Subject: Curve Fitting Toolbox

From: Katjes

Date: 1 Oct, 2009 05:31:02

Message: 1 of 3

Hay,

I am a newcomer in matlab. I have an exponential equation which needs to be fitted y=a*exp(-bx) - I need a and b. I used the curve fitting toolbox but I am having troubles in setting it up. I choose custom equation and entered some initial value but it looks completely odd. Anyway, I figured out I have to adjust Fit Options for customs... but I have no idea how to play with those values (DiffMinChange, MaxMinChange, ....)! Maybe some one of you!?

I appreciate every help!

Cheers, Katja

Subject: Curve Fitting Toolbox

From: Tom Lane

Date: 1 Oct, 2009 15:53:08

Message: 2 of 3

> I am a newcomer in matlab. I have an exponential equation which needs to
> be fitted y=a*exp(-bx) - I need a and b. I used the curve fitting toolbox
> but I am having troubles in setting it up. I choose custom equation and
> entered some initial value but it looks completely odd. Anyway, I figured
> out I have to adjust Fit Options for customs... but I have no idea how to
> play with those values (DiffMinChange, MaxMinChange, ....)! Maybe some one
> of you!?

Katja, I suggest you first try the built-in 'exp1' fit type. It's the same
as yours but with no negative sign on the exponent. The toolbox has some
special code to locate good starting values for built-in fit types that it
understands. Sometimes bad initial values are the source of difficulty in
fitting custom equations.

-- Tom

Subject: Curve Fitting Toolbox

From: Frederic Moisy

Date: 1 Oct, 2009 16:35:20

Message: 3 of 3

Although I usually do a simple linear fit of log(y) for fitting exponentials,
you can also have a look to the Ezyfit toolbox,
http://www.mathworks.com/matlabcentral/fileexchange/10176
which has a demonstration page where such fit is illustrated, see:
http://www.mathworks.com/matlabcentral/fx_files/10176/3/content/ezyfit/demo/html/efdemo.html
F.


"Katjes " <katja_puder@yahoo.de> wrote in message <ha1eqm$agl$1@fred.mathworks.com>...
> Hay,
>
> I am a newcomer in matlab. I have an exponential equation which needs to be fitted y=a*exp(-bx) - I need a and b. I used the curve fitting toolbox but I am having troubles in setting it up. I choose custom equation and entered some initial value but it looks completely odd. Anyway, I figured out I have to adjust Fit Options for customs... but I have no idea how to play with those values (DiffMinChange, MaxMinChange, ....)! Maybe some one of you!?
>
> I appreciate every help!
>
> Cheers, Katja

Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
curve fitting t... Sprinceana 1 Oct, 2009 02:42:54
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