|
From: | José Luis García Pallero |
Subject: | Re: string to variable? |
Date: | Mon, 4 Sep 2006 10:08:01 -0700 |
I was wondering if there is a way to assign a value to a variable, and then
construct a string with the same characters as the variable, and then use it
to access the value of the original variable. For Example:
thing_a = 2;
x = "thing_a";
%code here to merge the string "thing_a" with the variable thing_a
x
My hope is that running this script would return
x = 2
Is there a way to do this?
Thanks!
--
View this message in context: http://www.nabble.com/string-to-variable--tf2216346.html#a6138647
Sent from the Octave - General forum at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |