<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>Hi <br><br></div>I wanted to change variable names through strings. Since I use the similar property while I read variable from .nc file. For instance, <br></div>a = &quot;var&quot;<br></div>b = addfile(filename + &quot;.nc&quot;, &quot;r&quot;)<br></div>c = b-&gt;$a$<br></div><div>In this case, I can change a to change the variable names.<br></div><div><br></div>Now I wanted to use the similar feature to modify variable names. For instance,<br></div><div>a is a string, <br></div>a = &quot;var&quot;<br><br></div><div>b is a variable. I want to modify b by using <br></div>b = $a + &quot;a01&quot;$<br><br></div>Unfortunately, I got the error below.<br><br>fatal:syntax error: line 1 before or near $ <br>b = $<br><br></div>Do you know whether these is any way to change the variable name like what I want?<br><br></div>Thank you<br></div>Zhifeng<br></div>