Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg110249] Re: Question
  • From: "M.Roellig" <markus.roellig at googlemail.com>
  • Date: Thu, 10 Jun 2010 08:08:38 -0400 (EDT)
  • References: <huntc8$bka$1@smc.vnet.net>

On 9 Jun., 13:19, David Lengacher <dclengac... at gmail.com> wrote:
> How can you create a set of variables: x1 to xn  using the Table, or so me
> similar function?    I need a large list of variables to use in a linear
> program and so far have to type them out manually.
>
> David
Hi,

Is this what you are loking for?

Table[ToExpression["A" <> ToString[i]], {i, 1, 10}]

Markus


  • Prev by Date: Re: Question
  • Next by Date: using rules for square roots
  • Previous by thread: Re: Question
  • Next by thread: Re: Question