Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

nlinfit

Status
Not open for further replies.

teleco

Electrical
Dec 19, 2002
1
0
0
IT
Hello,

Im using the statistics toolbox, but I dont know how to make a non linear fit.
I should be very grateful if someone could main me the precise steps to do the following.
I have two vectors, x and y with data that must fulfill the relation:

y = a + b * exp (d*(x+c))

and of course I want to get the values of a, b, c and d. I know that I have to use the nlinfit function, but I dont know exactly how.
If you know the answer, please mail it to javigil1@yahoo.com .

Thanks in advance
Javi Gil
 
Replies continue below

Recommended for you

Javi,

I don't have the Stats Toolbox so I use the FMINSEARCH function and write my own cost function to minimise.

Maybe this helps.
Mike T
 
Status
Not open for further replies.
Back
Top