MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Newbie Programming question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg53436] Newbie Programming question
  • From: Kerry Kim <kjkim at u.washington.edu>
  • Date: Tue, 11 Jan 2005 01:32:02 -0500 (EST)
  • Organization: University of Washington
  • Sender: owner-wri-mathgroup at wolfram.com

Hello,

Is there any way in Mathematica to store/assign a value to a variable 
whose name is in a string?  In other words something like this:

i = 17;
foo="var" + ToString[i];
SomeFunctionThatConvertsStringToSymbolName[foo] = 17;

and then assign some value (say, 23) to the variable whose name is 
contained in the foo string? (i.e. var17=23)

Thanks!


  • Prev by Date: Re: Simplify[expr] bug?
  • Next by Date: Re: 2D plot for lists?
  • Previous by thread: Re: RealTime3D
  • Next by thread: Re: Newbie Programming question