Path: news.mathworks.com!newsfeed-00.mathworks.com!kanaga.switch.ch!switch.ch!news.belwue.de!news.uni-stuttgart.de!news.nask.pl!news.nask.org.pl!news.onet.pl!not-for-mail
From: Zebbik <zebik@op.pl>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Linear regression.
Date: Thu, 13 Mar 2008 16:38:20 +0000
Organization: Onet.pl
Lines: 37
Message-ID: <frbl9t$f89$1@news.onet.pl>
References: <fr9c9t$o1p$1@news.onet.pl> <fr9s1e$cee$1@fred.mathworks.com>
NNTP-Posting-Host: acca15c8.ipt.aol.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.onet.pl 1205426301 15625 172.202.21.200 (13 Mar 2008 16:38:21 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Thu, 13 Mar 2008 16:38:21 +0000 (UTC)
X-Sender: Bp2tzS8CFS8FGDaD6qs7Hg==
In-Reply-To: <fr9s1e$cee$1@fred.mathworks.com>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
Xref: news.mathworks.com comp.soft-sys.matlab:457071



Paul wrote:
> Zebbik <zebik@op.pl> wrote in message
> <fr9c9t$o1p$1@news.onet.pl>...
>> Hello.
>>
>> My problem is that I am supposed to find trend line
> /regression of from 
>> the results made in experiment. I know
>>
>> p = polyfit(x,y,1)
>>
>> gives me coefficients of line (the correlation is strong
> almost 1 so 
>> it's linear tendency), where in terms of y = mx + c
>>
>> p(1) - slope (m)
>> p(2) - 'c' coefficient
>>
>> I know also that
>>
>> yfit = polyval(p, y)
>>
>> gives me the fit of line such that it's going to be linear
> reggresion.
>> Now. The value im looking for is the slope. I would like
> to find the 
>> slope itself with the error or let's say Delta that the
> slope could 
>> differ arround like
>> (Slope - Delta_Slope, Slope + Delta_Slope)
>>
>> Does any1 know how to do that?
>>
>> Thanks.
> 
> I suggest you search the file exchange.
I am not quite sure what you mean.