Re: How to convert string to variable name

*To*: mathgroup at smc.vnet.net*Subject*: [mg39816] Re: How to convert string to variable name*From*: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>*Date*: Sat, 8 Mar 2003 02:46:29 -0500 (EST)*Organization*: Universitaet Leipzig*References*: <b49n66$fdc$1@smc.vnet.net>*Reply-to*: kuska at informatik.uni-leipzig.de*Sender*: owner-wri-mathgroup at wolfram.com

Hm, what may ToExpression["w"] do ? Generate a symbol w ??? Regards Jens Bob Harris wrote: > > Howdy, > > I'm trying to write a loop that assigns functions to a series of variables > which I'd like to name z, y, x, w, ... and so on. The functions are matrix > operator of a group, which I would use like this, for example: > > state // w // z // w // w > > Clearly I can generate the strings "z", "y", "x", "w" ... in my loop. But > for a given string, how can I assign to the variable whose name is defined > by that string? > > -- > -- Bob Harris =======================================================+ > | If stupidity got us into this mess, how come it can't get us out | > | of it? | > +====================================================================+