
Extracting specific data points from a matrix

Amo
Hello Forum,
I have a matrix (table9) and I want to extract specific data points such that I also copy values in nearby columns (to table8),
for example, in image attached you can see that data from table9 column 0 are picked and corresponding values from column 1 and 2 are also copied.
I can do it for a 1D wave, picking values in column between 7 and 12
Extract /o SourceWave , DestWave , SourceWave >=7 && SourceWave <=12
Now I have a matrix, I want to get the nearby data as well,
Thank you for your help

There might be a faster way, but this one will work:
September 3, 2019 at 10:29 pm - Permalink
And a different way to do, haven't tested speed:
September 4, 2019 at 10:09 am - Permalink
In reply to There might be a faster way,… by ChrLie
@ChrLie That suggestion is very elegant. I used to do this by setting each row as NaN and then use a separate function to split the matrix, zapnans in each and then put it back together. No more!
September 4, 2019 at 12:06 pm - Permalink
... and when you get your hands on IP9 you might want to check the implementation of zapNaNs() in MatrixOP :)
September 4, 2019 at 12:21 pm - Permalink
In reply to There might be a faster way,… by ChrLie
Thanks a lot
September 10, 2019 at 07:51 am - Permalink