
Copying selected data from one wave into a new wave

john_crow
I have a wave with one column of numbers. I want to select all of the numbers in the wave greater than say, x, and copy them in to a new wave.
I'm basically completely lost. Thanks for your help!
Hope this helps.
February 19, 2014 at 01:48 am - Permalink
An attempt was made to treat a text wave as if it were a numeric wave.
I didn't think I had a text wave... The example with your wData wave works though.
February 19, 2014 at 02:03 am - Permalink
where tWave is your text wave.
February 19, 2014 at 02:12 am - Permalink
"got 'tWave' instead of a string variable or string function name"
nWave = str2num(tWave[p])
February 19, 2014 at 02:30 am - Permalink
February 19, 2014 at 02:51 am - Permalink
February 19, 2014 at 04:25 am - Permalink
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
February 19, 2014 at 11:24 am - Permalink
February 19, 2014 at 11:11 pm - Permalink
hm, yes, shorter but not necessarily faster…well, at least not on large data sets ;-)
February 19, 2014 at 11:17 pm - Permalink