Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Analysis querry

Status
Not open for further replies.

keeganscurlyperm

Mechanical
Joined
Feb 14, 2007
Messages
1
Location
GB
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:0;1000

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top