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

Request help from experts!
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

Hi,

You need to declare the wave with the name wave3

variable wave0 = 1
variable wave1 = 2

String wave3="Newwave" + num2str(wave0)
Make /N = 4 $wave3
// $wave3[wave1] = 3
Wave w0 = $wave3
w0[wave3] = 3


Using wave0 or wave1 etc. for variable names and string names isn't a good idea.

Many Thanks!

I wondering how can I update the wave3 as well.
I tried as follows but found same error.

variable a = 1
variable b = 2

String wave3="Newwave" + num2str(a)
Make /N = 4 $wave3
// $wave3[b] = 3
Wave w0 = $wave3
w0[b] = 3
$wave3 = w0


Using wave0 or wave1 etc. for variable names and string names isn't a good idea.[/quote]