Re: Assigning Values to Many Symbols at Once
- To: mathgroup at smc.vnet.net
- Subject: [mg101737] Re: [mg101699] Assigning Values to Many Symbols at Once
- From: Gerry Flanagan <flanagan at materials-sciences.com>
- Date: Wed, 15 Jul 2009 07:13:00 -0400 (EDT)
- References: <200907141200.IAA05959@smc.vnet.net>
Here's an simple one Table[ Set[Evaluate[Symbol["x" <> ToString[i]]], initialValue], {i, 1, 5}] Gerry F. Gregory Lypny wrote: > Hello everyone, > > I can create a bunch of symbols on the fly using the Symbol command, > as in > > Table[Symbol["x" <> ToString[i]], {i, 5}] > > to get > > {x1,x2,x3,x4,x5} > > But how can I assign values to these all at once? > > Regards, > > Gregory > > >
- References:
- Assigning Values to Many Symbols at Once
- From: Gregory Lypny <gregory.lypny@videotron.ca>
- Assigning Values to Many Symbols at Once