MatrixTemplate (Simplification)
- To: mathgroup at smc.vnet.net
- Subject: [mg28415] MatrixTemplate (Simplification)
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Mon, 16 Apr 2001 23:54:18 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Clear["`*"] CreateMatrix[x_, m_, n_] := PadRight[{}, m, {PadRight[{}, {n}, {x}]}] Check CreateMatrix[0,3,5] {{0,0,0,0,0},{0,0,0,0,0},{0,0,0,0,0}} -- Allan --------------------- Allan Hayes Mathematica Training and Consulting Leicester UK www.haystack.demon.co.uk hay at haystack.demon.co.uk Voice: +44 (0)116 271 4198 Fax: +44 (0)870 164 0565