Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: linear regression
Date: Fri, 16 May 2008 13:31:01 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 17
Message-ID: <g0k2al$52n$1@fred.mathworks.com>
References: <13a0ad36-75d8-4ca0-b585-727d3a8ce1a9@w8g2000prd.googlegroups.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.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 1210944661 5207 172.30.248.37 (16 May 2008 13:31:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 May 2008 13:31:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:468838


fas <faisalmufti@gmail.com> wrote in message <13a0ad36-75d8-4ca0-b585-
727d3a8ce1a9@w8g2000prd.googlegroups.com>...
> Hi
> I want to do linear regression
> X_vec=a*Y_vec + b
> .
> .
> .
> 
> where X_vec(1....100) and Y_vec (1..100) are vectors (say of size
> 100). So I have an overdetermined system where each vector value gives
> me one equation and I want to determine 'a' and 'b' after regression.
> I am bit novice any help?

polyfit

John