Path: news.mathworks.com!not-for-mail
From: "Mohammad Monfared" <gohardoust@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: problem with curve fitting
Date: Fri, 31 Oct 2008 20:48:01 +0000 (UTC)
Organization: gol
Lines: 17
Message-ID: <gefqu1$fii$1@fred.mathworks.com>
Reply-To: "Mohammad Monfared" <gohardoust@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1225486081 15954 172.30.248.35 (31 Oct 2008 20:48:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 31 Oct 2008 20:48:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 93829
Xref: news.mathworks.com comp.soft-sys.matlab:498357


Hi everybody,
I'm trying to fit a curve to my data using 'curve fitting toolbox', but I can't get any result from.
here is my data:
x=[0 2 50 106 250 500 1000 2000];
y=[0 0.03 0.17 0.279 0.735 0.921 0.994 1.002];

and here is my 4-parameters function:
y=(1/log(exp(1)+(ag/x)^ng)^mg)*(1-(log(1+(dg)/x)/log(1+dg)))^7

One of my friends has done this job using the SPSS software, and I know the values of parameters are:
ag=250 ; ng=2.944  ; mg=1.2  ; dg=3.059  ;

I've tried different boundaries and starting point! where am I wrong or It's something whit this toolbox?
(I'm using v. R2007a)

thanks in advance,