I would like to have a function "range(waveName [, x1,x2])" that emulates the mean function, but would return the difference between the highest and lowest values in the specified set.
I was embedding the function into a routine found in the manual "Finding the Mean of Segments of a Wave," using "range" instead of "mean."
It ended up that working with the WaveMax and WaveMin valuations was the easier way to go. I tried to create a value "y_range" separately, but it wasn't taking for whatever reason. Anyway, I got what I needed.
Joined: 2007-06-29
Location: United States
How about:
Joined: 2007-06-21
Location: United States
How about:
I'm not sure which would be faster (and I'm not willing to bet a nickel on it!).
Joined: 2010-07-30
Location: United States
Thanks to both!
I was embedding the function into a routine found in the manual "Finding the Mean of Segments of a Wave," using "range" instead of "mean."
It ended up that working with the WaveMax and WaveMin valuations was the easier way to go. I tried to create a value "y_range" separately, but it wasn't taking for whatever reason. Anyway, I got what I needed.