Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!j33g2000pri.googlegroups.com!not-for-mail
From: fas <faisalmufti@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: linear regression
Date: Sat, 17 May 2008 04:12:46 -0700 (PDT)
Organization: http://groups.google.com
Lines: 25
Message-ID: <4c336df8-f903-4db2-bb4a-7a8cf785ec45@j33g2000pri.googlegroups.com>
References: <13a0ad36-75d8-4ca0-b585-727d3a8ce1a9@w8g2000prd.googlegroups.com> 
NNTP-Posting-Host: 124.168.223.201
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1211022766 10639 127.0.0.1 (17 May 2008 11:12:46 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Sat, 17 May 2008 11:12:46 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: j33g2000pri.googlegroups.com; posting-host=124.168.223.201; 
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) 
Xref: news.mathworks.com comp.soft-sys.matlab:468984


On May 16, 11:31 pm, "John D'Errico" <woodch...@rochester.rr.com>
wrote:
> fas <faisalmu...@gmail.com> wrote in message <13a0ad36-75d8-4ca0-b585-
>
> 727d3a8ce...@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

My data is 100x100, 2D which I have converted to X(:) as same for Y,
but it seems its not the right approach to run 1D polyfit on it. Any
idea what to do now