
Finding answer for "edit specific datapoint in $string waves"

linepic
I need a help for simple codes using waves with combination of strings.
but I cannot select one datapoint in such waves.
For example
variable wave0 = 1
variable wave1 = 2
String wave3="Newwave" + num2str(wave0)
Make /N = 4 $wave3
$wave3[wave1] = 3
Error saids "Can't use $ in this way in a function"
Please give me a kind help!
Thanks
You need to declare the wave with the name wave3
Using wave0 or wave1 etc. for variable names and string names isn't a good idea.
August 14, 2016 at 07:53 am - Permalink
I wondering how can I update the wave3 as well.
I tried as follows but found same error.
Using wave0 or wave1 etc. for variable names and string names isn't a good idea.[/quote]
August 14, 2016 at 05:59 pm - Permalink