How to calculate the slope of a line in a graph ? [message #84069] |
Thu, 25 April 2013 11:04  |
zolile mtumela
Messages: 50 Registered: September 2011
|
Member |
|
|
Dear all,
I got a set of data for x and y, I plotted a line graph, I did linfit too, But now i would like to know how to calculate the slope of x and y in the program.
I've been looking for a function that can help me overcome the problem, but I dnt have a luck to get it. Please any help will be appreciated.
Thank you in advance for your time
Many thanks
Zolile
|
|
|
Re: How to calculate the slope of a line in a graph ? [message #84141 is a reply to message #84069] |
Fri, 26 April 2013 08:20  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
zolilemtumela@gmail.com writes:
> Could you also help on calculating the uncertainty?
> I tried to calculate it on a program but I dnt figure it, Any suggestion will be highly appreciated. I searched the function that could help me calculating that but I ddnt get results.
Well, my suggestion is to read the on-line help for the PROB, SIGMA, and
CHISQR keywords to LINFIT. Whatever your definition of "uncertainty" is,
it is sure to be found in one or the other of those keywords. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: How to calculate the slope of a line in a graph ? [message #84142 is a reply to message #84069] |
Fri, 26 April 2013 08:12  |
zolile mtumela
Messages: 50 Registered: September 2011
|
Member |
|
|
On Thursday, April 25, 2013 8:04:17 PM UTC+2, zolile...@gmail.com wrote:
> Dear all,
>
> I got a set of data for x and y, I plotted a line graph, I did linfit too, But now i would like to know how to calculate the slope of x and y in the program.
>
> I've been looking for a function that can help me overcome the problem, but I dnt have a luck to get it. Please any help will be appreciated.
>
>
>
> Thank you in advance for your time
>
>
>
> Many thanks
>
> Zolile
Thank you so much!!
Could you also help on calculating the uncertainty?
I tried to calculate it on a program but I dnt figure it, Any suggestion will be highly appreciated. I searched the function that could help me calculating that but I ddnt get results.
Many thanks
Zolile
|
|
|