TableDirections

TableDirections

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

Details

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

Examples

open allclose all

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=

Scope  (3)

See Also

TableSpacing  TableAlignments

Tutorials

Introduced in 1991
(2.0)