is an option for TableForm and MatrixForm which specifies the maximum number of levels to be printed in tabular or matrix format.


  • TableForm[list, TableDepth->n] prints elements in list below level n as ordinary lists, rather than arranging them in tabular form.
  • With the default setting TableDepth->Infinity, as many levels as possible are printed in tabular form. In TableForm, the levels printed need not consist of elements with the same list structure. In MatrixForm, they must.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Format a tensor of rank 3 as a table of lists:

Click for copyable input
New in 2
New to Mathematica? Find your learning path »
Have a question? Ask support »