Summing specific columns in a 2D wave
Fri, 05/01/2020 - 01:46 pm
I have a 2D wave with 23 rows and 19 columns: datawave (23,19)
Now, I want to create a new 2D wave newdatawave(23,11) which will have the first 10 columns from datawave as is. For the 11th column, I want the horizontal sum of 11-19 columns from datawave.
I am trying MatrixOp to accomplish this via a 1-2 liner code but couldn't get the right syntax.
Kindly help on how to accomplish this task.
Thanks a lot in advance!