cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Create an array from a larger array

AaronG
1-Visitor

Create an array from a larger array

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 2
Fred_Kohlhepp
23-Emerald I
(To:AaronG)

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.

Try the attached.

Mike

Announcements

Top Tags