MathGroup Archive 1997

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

Search the Archive

Re: creating variables

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