Sum one column of multidimension wave
Mike German
I am trying to add the contents of one column of al multiple dimension wave and can't seem to get my head around using MatrixOp for what should just be (it seems to me) a simple task. I can of course use a loop and count but is there another way?
print w[0]
or, equivalently,
print w[colnum]
where w2D and colnum are the input wave and column number
December 4, 2024 at 05:13 am - Permalink
How about:
MatrixOP/FREE/O/P=1 aa=sum(col(w2d,colNum))
Note that this is a bit more efficient in that it sums only the specified column.
December 4, 2024 at 10:00 am - Permalink
Thanks Chaps - that did the trick .... although I still need to put my thinking head on:-)
December 6, 2024 at 02:39 am - Permalink