Converting a string to a variable name
- To: mathgroup at smc.vnet.net
- Subject: [mg90318] Converting a string to a variable name
- From: Aaron Fude <aaronfude at gmail.com>
- Date: Sat, 5 Jul 2008 04:52:17 -0400 (EDT)
Hi, Is it possible to create a variable whose name is contained in another variable or a string, something along the lines of Table[ a="Var"<>ToString[i]; Variable[a] = i^2, {i, 1, 10}] and end up with variables Var1, ..., Var10? Thanks! Aaorn
- Follow-Ups:
- Re: Converting a string to a variable name
- From: "Louis A. Talman" <talmanl@mscd.edu>
- Re: Converting a string to a variable name