MathGroup Archive 2009

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

Search the Archive

Re: Generating a list numnber in string format

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102648] Re: [mg102598] Generating a list numnber in string format
  • From: Leonid Shifrin <lshifr at gmail.com>
  • Date: Mon, 17 Aug 2009 04:31:57 -0400 (EDT)
  • References: <200908161040.GAA01235@smc.vnet.net>

Hi Richard,

genStringNumbers[n_Integer] := Map[ToString, Range[n]];

In[1] = genStringNumbers[10] // InputForm

Out[1] = {"1", "2", "3", "4", "5", "6", "7", "8", "9", "10"}

Regards,
Leonid

On Sun, Aug 16, 2009 at 2:40 PM, Richard Trilling <rich.bis at wanadoo.fr>wrote:

> 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]
>
>
>
>



  • Prev by Date: printing issue with a simple graphic
  • Next by Date: histograms, logarithmic
  • Previous by thread: Re: Generating a list numnber in string format
  • Next by thread: Re: Generating a list numnber in string format