Sum specific rows of a 1D wave
Mon, 09/30/2019 - 10:47 am
I have a 1D wave called data (23,1).
I want to sum specific rows of this wave. In this case, I want variable IVOC to store sum of values in rows (4,8) and SVOC to store sum of rows (9,15). I can't figure out the syntax even though I feel like it has got to be something simple.
Sumrows returns value for the entire wave so I'm guessing i can't use that.. Kindly help. Thanks!
Also, please advise on two more things:
1. How to sum all cells in specific rows of a 2D matrix? i.e. if for a matrix called data1(23,19), I want to produce the sum of all cells that are included in rows 4 to 8.
2. How to sum all cells of a 2D matrix? i.e. producing the sum of all values in a 2D wave.
Many Thanks and Regards,