Path: news.mathworks.com!not-for-mail
From: "Zaira " <Zaira.Girbau-Garcia@jrc.it>
Newsgroups: comp.soft-sys.matlab
Subject: Least squares fitting
Date: Tue, 13 May 2008 15:35:21 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <g0ccfp$jd9$1@fred.mathworks.com>
Reply-To: "Zaira " <Zaira.Girbau-Garcia@jrc.it>
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 1210692921 19881 172.30.248.37 (13 May 2008 15:35:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 13 May 2008 15:35:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1380115
Xref: news.mathworks.com comp.soft-sys.matlab:468176


I need to find the coefficients k1-k6 of the following equation:

P = G*(k1 + k2*T + k3*log(G) + k4*(log(G)).^2 + k5*T*log(G)+
k6*T*(log(G)).^2+k7*T.^2);

The experimental data I have are P, G and T.

Is there any MATLAB function in order to obtain the
coefficients using least-squares fitting? 
Do I need the Curve Fitting Toolbox?

Thank you very much,
Zaira