I have two waves of equal length, waveA and waveB
I want to find the indices where waveA > 10 && waveB < 5.
I can do this using loops but it is slow.
Is there a fast way to do this somehow using the extract command?
So far I have not been able to think of one.
Here is an example that uses Extract and creates a wave of indexes from waveA where the equation evaluates to true. Note that if wavea and waveb were not the same length this wouldn't work as expected.
make wavea = p
make waveb = 127-p
Extract/INDX wavea, indexes, wavea[p] > 10 && waveb[p] < 5
print indexes
indexes[0]= {123,124,125,126,127}
A.G.
WaveMetrics, Inc.
December 10, 2012 at 04:24 pm - Permalink
December 10, 2012 at 04:53 pm - Permalink
December 11, 2012 at 05:16 am - Permalink