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: [mg50922] Re: [mg50913] Array construction
  • From: "Maxim A. Dubinnyi" <maxim at>
  • Date: Tue, 28 Sep 2004 00:58:31 -0400 (EDT)
  • References: <>
  • Sender: owner-wri-mathgroup at

First way - use subscripting:


But the result is not exactly you wish.
Second way - use ToExpression and ToString:

Table[ToExpression["a" <> ToString[i] <> ToString[j]], {i, 2}, {j, 2}]
{{a11, a12}, {a21, a22}}

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: Re: Array construction
  • Next by Date: Re: Export to file
  • Previous by thread: Array construction
  • Next by thread: Re: Array construction