> I have an array that contains about 3700 rows, and 4 columns. Every
> 37 rows a cycle of data begins. I would like to delete the first row
> of every cycle of data (i.e. row 1, row 38, row 75, row 111, etc --
> until I have deleted every 37th row in the entire array). Then if
> possible I would like to take an average of rows 2 through 37, 39
> through 74, 76 through 110, etc...
>
One thing you don't mention is what the array is used for afterwards.
It is displayed, written to file, are the averages written back to those
deleted rows?
The reason I mention this is that it may make sense to loop through just
indexing out rows and using mod 37 math on the iteration count "i",
either add it to the running sum, or output the average. You can then
just
skip the row that you don't want to use if you don't need the array
afterwards. You can also use this same approach to move the data to a
preallocated array using replace.
Greg McKaske