Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

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


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