RE: How to construct a matrix like this ?
- To: mathgroup at smc.vnet.net
- Subject: [mg50905] RE: [mg50895] How to construct a matrix like this ?
- From: "David Park" <djmp at earthlink.net>
- Date: Mon, 27 Sep 2004 00:42:12 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Array[Symbol@("a" <> StringJoin[ToString /@ {#1, #2}]) &, {2, 2}] {{a11, a12}, {a21, a22}} David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: zhoukm at hotmail.com [mailto:zhoukm at hotmail.com] To: mathgroup at smc.vnet.net With Array[a, {2,2}] I can get an array like: | a[1,1] a[1,2] | | a[2,1] a[2,2] |. But occasionally I want matrix like: | a11 a12 | | a21 a22 | I remember I once figured out a way to do it but now I forgot. Anyone can give me a hand? Regards