Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock 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
Feb 14, 2007
1
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
 
Replies continue below

Recommended for you

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