Re: creating variables
- To: mathgroup at smc.vnet.net
- Subject: [mg6197] Re: [mg6072] creating variables
- From: "William M. MacDonald" <wmacd at erols.com>
- Date: Thu, 27 Feb 1997 02:53:45 -0500
- Organization: Erol's Internet Services
- Sender: owner-wri-mathgroup at wolfram.com
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