MathGroup Archive 2002

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

Search the Archive

Appending to a matrix?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg38543] Appending to a matrix?
  • From: "Jeremy" <cfgauss at pants.attbi.com>
  • Date: Tue, 24 Dec 2002 06:40:44 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

How do I append a column vector to the end of a matrix in mathematica?

For example, I want to turn:
[1 2 3]     [1]
[4 5 6] and [1]
[7 8 9]     [1]

into

[1 2 3 1]
[4 5 6 1]
[7 8 9 1]

Or, actually,

[1 2 3 | 1]
[4 5 6 | 1]
[7 8 9 | 1]

Not that it really matters.

Also, is there a way that I can stick the entries of a row reduced matrix
onto powers of x's?  Like

[1 0 0 | 1]
[0 1 0 | 2]
[0 0 1 | 3]

to

1 + 2x + 3x^2
?

Many thanks,
Jeremy

--


  • Prev by Date: Re: Re: More about ellipse and circle intersection
  • Next by Date: techexplorer
  • Previous by thread: find inverse of an arbitrary function
  • Next by thread: Re: Appending to a matrix?