Renaming variables using strings



Hi all,
I have a big database with several variables inside. Now I would like
to assign some other names for the variables. One script makes a
strings of these variable names according to some routine. For
example, i have a variable in database called F101 and the script
makes a string 'F101'. I would like to rename the variable F101 as
dataF. As I have the variable name just as an automatically
generated string (by ['F','101'], I do not know how to rename the
variable. Commands dataF='F101' and dataF=str2num('F101') do not work
in such a case. When dataF='F101' is used the existing variable is
just rewritten and obtains a value of the string and str2num('F101')
does not work as F101 cannot be turned into a number.

Any idea how to do it?

Regards,
kristjan
.



Relevant Pages


Loading