From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Nonlinear Curve Fitting
Date: Mon, 24 May 2010 22:20:21 +0000 (UTC)
Organization: Boston University
Lines: 10
Message-ID: <hteu35$i4n$>
Reply-To: <HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1274739621 18583 (24 May 2010 22:20:21 GMT)
NNTP-Posting-Date: Mon, 24 May 2010 22:20:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 845040
Xref: comp.soft-sys.matlab:638889

Hi All, 

I have searched through the Matlab forums, but haven't found the answer to my question. I would like to use a least squares function to fit some data. 

Briefly, I have two equations of the form

Z1 = a + b*x + c*y + d*x*y 
Z2 = e + f*x + g*y + h*x*y

where i know Z1, Z2, x, and y and they're in vector form. I have a few hundred data points, so the lack of data is not an issue. Is there a way I can use the lsqcurvefit function to figure out a thru h or is this a more complex problem?