Skip to main content
1-Visitor
April 10, 2011
Question

Create an array from a larger array

  • April 10, 2011
  • 2 replies
  • 3107 views

Hello,
I have an array of 1048320 rows (let's call it P) and I need to do the following operations (I have tried a few things but my MathCAD knowledge is rusty)

I need to create a new array with 720 rows (let's call it Q). The first row in Q will be the summation of rows 0,720,1440... from P. The second row in Q will be the summation of rows 1,721,1441... from P. And so on for all 720 rows in Q.

Like I said, my MathCAD knowledge is pretty rusty so I wasn't able to figure out a program. If anyone can lend some advice it would be GREATLY appreciated. Thanks!!

2 replies

23-Emerald I
April 11, 2011

Aaron Gaylord wrote:

Hello,
I have an array of 1048320 rows (let's call it P) and I need to do the following operations (I have tried a few things but my MathCAD knowledge is rusty)

I need to create a new array with 720 rows (let's call it Q). The first row in Q will be the summation of rows 0,720,1440... from P. The second row in Q will be the summation of rows 1,721,1441... from P. And so on for all 720 rows in Q.


My version 11 can't open what you posted, so I've guessed.

This will at least get you started.

1-Visitor
April 12, 2011

Try the attached.

Mike