MathGroup Archive 2003

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

Search the Archive

Re: Transpose matrix does not work when MatrixForm is used, why?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg45201] Re: Transpose matrix does not work when MatrixForm is used, why?
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Sat, 20 Dec 2003 05:56:08 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On 12/19/03 at 6:57 AM, nma124 at hotmail.com (steve_H) wrote:

> m = { {1, 2, 3}, {4, 5, 6} } // MatrixForm
> Transpose[m]
 
> this just does nothing. it simply prints back what I typed with
> m in MatrixForm but does not actually do the transpose.

Right.

If your look a the Head of m, you will find it is MatrixForm rather than List. Consequently, Transpose doesnx't know what to do.

You can fix this in one of two ways. First, by forcing the m to be a list before doing MatrixForm as in:

(m = { {1, 2, 3}, {4, 5, 6} }) // MatrixForm

The other method which I prefer is to set the default output format as Traditional form. This will (amoung other things) cause a matrix to display as you want without having to type //MatrixForm.
--
To reply via email subtract one hundred and four


  • Prev by Date: RE: How to have shaded background for just a portion of a plot?
  • Next by Date: Re: Transpose matrix does not work when MatrixForm is used, why?
  • Previous by thread: Re: Transpose matrix does not work when MatrixForm is used, why?
  • Next by thread: RE: Transpose matrix does not work when MatrixForm is used, why?