How to get slope of discrete data
How to get slope of discrete data
(OP)
Hi,
I have discrete data which can be some kind of curve. Now if we don't use a function to fit the data, and just based on these discrete data, can we get the approximate slope?
Thanks.
I have discrete data which can be some kind of curve. Now if we don't use a function to fit the data, and just based on these discrete data, can we get the approximate slope?
Thanks.





RE: How to get slope of discrete data
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: How to get slope of discrete data
if we have y-x data, then diff(y)./diff(x) gives rough slopes at different points.
RE: How to get slope of discrete data
- Steve
RE: How to get slope of discrete data
If your data doesn't fall on a line, then I'm not sure what you're trying to accomplish. If your trying to interpolate or do a prediction, then you should be fitting to a polynomial or something similar to mitigate the noise impact.
If your data are on a line, then you should fit to a line to get the best data possible.
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: How to get slope of discrete data
I will try both diff (or gradient) and fitting to a simple function.
Mapi
RE: How to get slope of discrete data
TTFN
FAQ731-376: Eng-Tips.com Forum Policies
RE: How to get slope of discrete data
Mapi