MathGroup Archive 2010

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

Search the Archive

Re: Row or column?


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 comcast.net
http://home.comcast.net/~djmpark/  
 

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

Hi,

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,

Sam



  • 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?