TableDirections

TableDirections
is an option for TableForm and MatrixForm which specifies whether successive dimensions should be arranged as rows or columns.

DetailsDetails

  • TableDirections->Column specifies that successive dimensions should be arranged alternately as columns and rows, with the first dimension arranged as columns.
  • TableDirections->Row takes the first dimension to be arranged as rows.
  • TableDirections->{dir1, dir2, ...} specifies explicitly whether each dimension should be arranged with Column or Row.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

By default the outermost dimension is a column:

In[1]:=
Click for copyable input
Out[1]//TableForm=

Format the first dimension as a row instead:

In[2]:=
Click for copyable input
Out[2]//TableForm=
New in 2
New to Mathematica? Find your learning path »
Have a question? Ask support »