Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Passing constants to optimization functions
Date: Wed, 10 Oct 2007 15:19:17 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 9
Message-ID: <feiqhl$7nd$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1192029557 7917 172.30.248.37 (10 Oct 2007 15:19:17 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 10 Oct 2007 15:19:17 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:432237



I am trying to use lsqnonlin(), but my user defined function
needs to know a couple of constants.  The lsqnonlin expects
my function to only accept one parameter (the one being
optimized).  Is there a better way to "pass" these constants
besides making them global?

Thanks,

David