error in submatrix operation in MatrixOP
Mon, 07/25/2022 - 07:42 am
The following code, which worked fine in older versions like igor 7, throws an error in igor 9 due to "Bad range specification".
MatrixOP/O/S wDataMeanZ = mean(wData[p])
I basically want to create a 1D array "wDataMeanZ" with the size of the layer by taking the mean of the row-column space of the 3D matrix "wData", but I want to keep the code concise with 1 line as above. Is there any other similar code that replaces this without using a lengthy function like for-loop?