Accessing single wave element using wave reference
berger.156
Specifically, I have many waves named for example wave0, wave1, wave2...
In my program, I am referencing these waves inside of a for loop with index i using
String waveIn = "wave"+num2str(i)
I am then trying to set the value of one element of waveOut but using the $waveIn reference:
waveOut[i] = $waveIn[desiredIndex]
What is the proper way to read the desired element from waveIn?
WAVE waveIn = $waveInStr
waveOut[i] = waveIn[desiredIndex]
DisplayHelpTopic "Accessing Waves In Functions"
DisplayHelpTopic "Converting a String into a Reference Using $"
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
August 15, 2016 at 09:47 am - Permalink