Re: Array construction
- To: mathgroup at smc.vnet.net
- Subject: [mg50931] Re: Array construction
- From: motz art <music at heart.com>
- Date: Tue, 28 Sep 2004 00:58:50 -0400 (EDT)
- References: <cj86n1$78e$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
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 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