Path: news.mathworks.com!not-for-mail
From: "Han Zhou" <repeatcloud@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: lsqcurvefit-initial guess better than fitting
Date: Sun, 22 Apr 2012 15:36:09 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 21
Message-ID: <jn18h8$3ut$1@newscl01ah.mathworks.com>
References: <jmqv7a$sg0$1@newscl01ah.mathworks.com> <jmr368$e41$1@newscl01ah.mathworks.com> <a4fcc76b-acfb-41ce-914c-a0e5cdea1ae6@w5g2000vbp.googlegroups.com>
Reply-To: "Han Zhou" <repeatcloud@gmail.com>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1335108969 4061 172.30.248.46 (22 Apr 2012 15:36:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 22 Apr 2012 15:36:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3447095
Xref: news.mathworks.com comp.soft-sys.matlab:765511

Torsten <Torsten.Hennig@umsicht.fraunhofer.de> wrote in message <a4fcc76b-acfb-41ce-914c-a0e5cdea1ae6@w5g2000vbp.googlegroups.com>...

> 1. Your call to lsqcurvefit and the interpretation of the arguments in
> myfun are wrong.
> 2. At the moment, myfun returns the model y-data for only _one_ data
> point to lsqcurvefit.
> 
> Look at the example problems for lsqcurvefit in the documentation.
> 
> Best wishes
> Torsten.

Dear Torsten,

I read the example many times but I could not really see why myfun will return only one model y-data. Could you give me some indication?
Is it because the 2 Input cell have different length?
The tricky point is that in myfun there is a problem-dependent parameter deltax, so I could not use only one input vector - xdata.

Danke Schoen und bis bald!!!

Han