Data Analysis querry
Data Analysis querry
(OP)
Hello
I have a set of data which I download as a two column data array into MathCad 2001i and typically 1000 rows. The data is the change in mass (y) as a function of time (x)
I would like to complete a running calculation of the slope of my data using around five data points at a time i.e. start at i:=0 to i:=5, calculate slope from data points in that range of data and then start at i:=1 to i:=6 etc until the full 1000 data points have been analysed.
Would anyone know the best method of doing this in MathCad? I have been playing around with the programming part of MathCad (while and if loops) but am not sure if there is a simpler method
Many thanks
I have a set of data which I download as a two column data array into MathCad 2001i and typically 1000 rows. The data is the change in mass (y) as a function of time (x)
I would like to complete a running calculation of the slope of my data using around five data points at a time i.e. start at i:=0 to i:=5, calculate slope from data points in that range of data and then start at i:=1 to i:=6 etc until the full 1000 data points have been analysed.
Would anyone know the best method of doing this in MathCad? I have been playing around with the programming part of MathCad (while and if loops) but am not sure if there is a simpler method
Many thanks





RE: Data Analysis querry
acc[i:0
i:2;998
acc[i:(y[(i+2)-y[(i-2))/(x[(i+2)-x[(i-2)))
Cheers
Greg Locock
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.