MathGroup Archive 1997

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

Search the Archive

Re: creating variables

  • To: mathgroup at
  • Subject: [mg6197] Re: [mg6072] creating variables
  • From: "William M. MacDonald" <wmacd at>
  • Date: Thu, 27 Feb 1997 02:53:45 -0500
  • Organization: Erol's Internet Services
  • Sender: owner-wri-mathgroup at

The way to create a set of elements is 
  aset = Array[a,{25}]
This will create symbols a[1], a[2],a[3].  You can access each
individually as a[i].  Array creates them in a list, so you can access
them as   aset[[i]] individually, although this makes no sense.  If you
want to make a matrix of unassigned elements, this is the way to go, but
you must give a name to the object created by Array.

William M. MacDonald
Physics Department
University of Maryland

  • Prev by Date: Concerning subscripts, etc....
  • Next by Date: Re: subscripting variables, etc...
  • Previous by thread: Concerning subscripts, etc....
  • Next by thread: Re: subscripting variables, etc...