MathGroup Archive 2010

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

Search the Archive

Re: Row or column?

  • To: mathgroup at
  • Subject: [mg112687] Re: Row or column?
  • From: "David Park" <djmpark at>
  • Date: Mon, 27 Sep 2010 05:45:45 -0400 (EDT)

The default behavior of MatrixForm is to treat the entire object, Level 0,
as a Column, to treat Level 1 items as a Row, etc. You can either write the
object as a true matrix or you can change the default behavior by using the
TableDirections option.

MatrixForm[{{a, b}}] 

MatrixForm[{a, b}, TableDirections -> Row] 

David Park
djmpark at  

From: Sam Takoy [mailto:sam.takoy at] 


How come

{a, b} // MatrixForm
{{a}, { b}} // MatrixForm

produce identical outputs: columns?

I would think that the first "matrix" is 1x2 and the second is 2x1.

Alternatively, how do I produce a 1x2 matrix?

Many thanks in advance,


  • Prev by Date: Re: Histogram
  • Next by Date: Mathematica calculates RSquared wrongly?
  • Previous by thread: Re: Row or column?
  • Next by thread: Re: Row or column?