MathGroup Archive 2004

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

Search the Archive

Re: Array construction

  • To: mathgroup at smc.vnet.net
  • Subject: [mg50922] Re: [mg50913] Array construction
  • From: "Maxim A. Dubinnyi" <maxim at nmr.ru>
  • Date: Tue, 28 Sep 2004 00:58:31 -0400 (EDT)
  • References: <200409270442.AAA07191@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

First way - use subscripting:

Table[Subscript[a,i,j],{i,2},{j,2}]

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 hotmail.com 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?
>
>Regards
>
>  
>



  • Prev by Date: Re: Array construction
  • Next by Date: Re: Export to file
  • Previous by thread: Array construction
  • Next by thread: Re: Array construction