Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: Array construction

  • To: mathgroup at
  • Subject: [mg50931] Re: Array construction
  • From: motz art <music at>
  • Date: Tue, 28 Sep 2004 00:58:50 -0400 (EDT)
  • References: <cj86n1$78e$>
  • Sender: owner-wri-mathgroup at

This did it for me:

f[i_, j_] := ToExpression[StringJoin["a", ToString[i], ToString[j]]]
TableForm[Array[f, {2, 2}]]

On Mon, 27 Sep 2004 04:59:13 +0000 (UTC), zhoukm at wrote:

>With Array[a,{2,2}] I can get
>| a[1,1] a[1,2]|
>| a[2,1] a[2,2]|
>but sometimes I prefer the expression as
>| a11 a12|
>| a21 a22|
>. Is there anyway to produce this?

  • Prev by Date: Error with NDSolve
  • Next by Date: Re: Array construction
  • Previous by thread: Re: Array construction
  • Next by thread: Re: Array construction