"Find" Function
BMangum
I would like to find indexes of all the values > some threshold in my wave.
Also I would like to be able to count how many values in my wave are greater than the threshold.
What I would like to know how to do is:
Make wave1 = {1,6,10}
I would like to find the index of all the values greater than 5, and have it return the indices 1 and 2
this was all very simple in Matlab, but I am having a hard time finding any simple function that can accomplish this without writing a for loop.
Thanks for any help out there,
Ben
•Extract/INDX wave1, extractedWave, wave1[p] > 5
•print extractedWave
extractedWave[0]= {1,2}
•print numpnts(extractedWave)
2
July 2, 2010 at 05:02 pm - Permalink
July 6, 2010 at 04:56 pm - Permalink