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