MathGroup Archive 2001

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

Search the Archive

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





  • Prev by Date: Re: How do I see justification of solution?
  • Next by Date: NumberForm does not do, please help
  • Previous by thread: Re: inum error from NIntegrate?
  • Next by thread: NumberForm does not do, please help