Re: Generating a list numnber in string format
- To: mathgroup at smc.vnet.net
- Subject: [mg102641] Re: [mg102598] Generating a list numnber in string format
- From: "David Park" <djmpark at comcast.net>
- Date: Mon, 17 Aug 2009 04:06:42 -0400 (EDT)
- References: <2153655.1250420119008.JavaMail.root@n11>
Assuming that what you ultimately want is Symbols:
binnames = Table[Symbol["bin" <> ToString[n]], {n, 5}]
But why not use bin[1], bin[2] etc., for your variables? Then you could
specify various ones programmatically.
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/
From: Richard Trilling [mailto:rich.bis at wanadoo.fr]
Hello,
I would like to be able generate a list of numbers from 1 to n string
format.
binlist={"1","2","3","4",..."n"}
I need to use them in this format to map into a list of variable names
binnames = Map["bin" <> # &, binlist]