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

MathGroup Archive 1996

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

Search the Archive

Re: List of variable names

  • To: mathgroup at smc.vnet.net
  • Subject: [mg5297] Re: [mg5227] List of variable names
  • From: Andrei Constantinescu <constant at athena.polytechnique.fr>
  • Date: Sat, 23 Nov 1996 01:44:38 -0500
  • Sender: owner-wri-mathgroup at wolfram.com

 In order to get the names of variables in a list, you should use
 Names. Take a look at the following example:

In[2]:= Names["t*"]

Out[2]= {te, ts, t20a4p, t200a3p, t200a54p, t400a3p, t400a53p, t400a54p, 
 
>    t400b53p, t400c54p, t500a53p, t500b54p, t500c54p, t550a53p, t550a54p, 
 
>    t600a3p, t600a53p, t600a54p, t600b3p, t700a2p, t700a3p, t700a4p, 
 
>    t700a53p, t700a54p, t800a2p, t800a3p, t800a4p, t800a53p, t800a54p}

In[3]:= Names["t200*"]

Out[3]= {t200a3p, t200a54p}

If you want more information you might use:

Map[ ToExpression[ "?"<>ToString[#] ] & , %3 ]

Scan[ (ToExpression[ "??"<>ToString[#] ]; Print[" "]) & , Names["`*"] ]

... etc.

 Hope that helps !

  Andrei



  • Prev by Date: Arnold's Cat Map
  • Next by Date: Presentation material
  • Previous by thread: Re: Euclidean Matrix Norm
  • Next by thread: Presentation material