[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
string to variable?
From: |
the_verge |
Subject: |
string to variable? |
Date: |
Mon, 4 Sep 2006 09:54:53 -0700 (PDT) |
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.
- string to variable?,
the_verge <=