**Finding the slope and y intercept of lsline**Hi All
I had used lsline function to find the least square line.Can you help
me for finding the slope and y intercept of the least square line.
Thanks in advance
PMN
PMN <praveenmn1@gmail.com> wrote in message <908774cc-7a99-4819-9dae-db0f7d4ee65b@o16g2000prh.googlegroups.com>...
> Hi All
>
> I had used lsline function to find the least square line.Can you help
> me for finding the slope and y intercept of the least square line.
>
> Thanks in advance
> PMN
hi.........no need to use lsline........if u r only want to find out slope and intercept ....o it w...

**Slope and Intercept**Hi,
I have two columns X and Y. Is there a way to find out the slope and
intercept for the columns?
Thanks much for the help
...

**slope and intercept**Dear MATLAB community,
I am trying to determine the slope (a) and intercept (b) for
a linear fit y = ax+b.
I know the function postreg ([slope,intercept,r] =
postreg(x',y']) will do it for me, but I would like to find
a function that calculates these parameters without the plot
postreg creates
Thank you for your inputs,
Benoit
"Benoit " <igneb@iastate.edu> wrote in message
<g36uct$1m6$1@fred.mathworks.com>...
> Dear MATLAB community,
>
> I am trying to determine the slope (a) and intercept (b) for
> a linear fit y = ax+b.
>
> I know the ...

**How to find a slope of line.**hi
I have a plot with diff values of x and y.
i want to find the plot of that linear function slope.
like y=mx+c
and m= slope.
Hi Maulik,
Polyfit should help you.
Best.
...

**Re: Slope and Intercept**Hi,
Are you trying to do a regression?
If so, proc reg will do.
--
Regards,
Murphy Choy
Certified Advanced Programmer for SAS V9
Certified Basic Programmer for SAS V9
DataShaping Certified SAS Professional
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of sasbegy
Sent: Tuesday, April 28, 2009 11:27 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Slope and Intercept
Hi,
I have two columns X and Y. Is there a way to find out the slope and
intercept for the columns?
Thanks much for the help
I wonder if sasbegy is referring to point slope and intercep...

**extrapolate to find the intercept**hi all,
i'm sure this is a simple one but i'm not sure how to do this the most efficient way in matlab: i have a vector x=[2.5;3.456];. how do i extrapolate this vector so that it hits the intercept? or find the intercept in a different way? is there a simple function for that?
any help is appreciated.
"Linda" wrote in message <l3r34b$7j9$1@newscl01ah.mathworks.com>...
> hi all,
>
> i'm sure this is a simple one but i'm not sure how to do this the most efficient way in matlab: i have a vector x=[2.5;3.456];. how do i extrapolate this vector ...

**Error in slope and intercept**I was informing myself about linear regression with error in both observables and found this algorithm: (Weighted Orthogonal Regression by Alternating Least Squares)
worals[x_, y_, sx_, sy_] := Block[{a,b,f,z, u = 1/sx, v = 1/sy, w = (sy/sx)^2},
{a,b} = (y*v).PseudoInverse@{v,x*v}; f = #.#&[(a+b*x-y)v];
While[f > (z = (x*w + (y-a)b)/(b^2 + w);
{a,b} = (y*v).PseudoInverse@{v,z*v};
f = #.#&@Join[(z-x)u,(a+b*z-y)v])];
{f,{a,b}}]
which gives me {chisquare, {intercept, slope}} as output.
This works prefectly fine but I'd like to get the error on slo...

**finding slope regions**
This issue seems simple at first, but has proven to be quite an algorithmic challenge. I’d appreciate any insights.
We have data that appears as combinations of straight lines in log-log plots, say a slope of 0.3 followed by a slope of 1.6. We'd like to fit lines to the data and get their parameters.
The data is experimental, so is of course quite noisy, just seems pretty straight in log-slope... In addition, between different slope regions, e.g. slope of 0.3 and 1.6, there are rounded "knees". The knee regions change in curvature and total length from plot to plot, ...

**slope**What is the slope-intercept equation of the line that contain the
point (3,2) and has slope m=4?
What is the slope and y intercept of the line represented by the
equation: 2x + 2y =3?
Thanks,
SH
Sonia Haynes wrote:
>
>
> What is the slope-intercept equation of the line that contain the
> point (3,2) and has slope m=4?
>
> What is the slope and y intercept of the line represented by the
> equation: 2x + 2y =3?
>
> Thanks,
> SH
look in an elementary maths textbook
Sonia Haynes wrote:
> What is the slope-intercept equation of the line that contain the
> po...