From: "Han Zhou" <>
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$>
References: <jmqv7a$sg0$> <jmr368$e41$> <>
Reply-To: "Han Zhou" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1335108969 4061 (22 Apr 2012 15:36:09 GMT)
NNTP-Posting-Date: Sun, 22 Apr 2012 15:36:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3447095
Xref: comp.soft-sys.matlab:765511

Torsten <> wrote in message <>...

> 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!!!