TableHeadings

TableHeadings

is an option for TableForm and MatrixForm that gives the labels to be printed for entries in each dimension of a table or matrix.

Details

  • TableHeadings->None gives no labels in any dimension.
  • TableHeadings->Automatic gives successive integer labels for each entry in each dimension. »
  • TableHeadings->{{lbl11,lbl12,},} gives explicit labels for each entry.
  • The labels can be strings or other Wolfram Language expressions. »
  • The labels are placed as headings for rows or columns.

Examples

open allclose all

Basic Examples  (1)

Give explicit headings for rows and columns:

Specify headings only for rows:

Specify headings only for columns:

Scope  (3)

Use with MatrixForm:

Use automatically generated headings for rows and columns:

Use automatic headings only for rows:

Only for columns:

Specify Greek letters for row and column headings:

Wolfram Research (1991), TableHeadings, Wolfram Language function, https://reference.wolfram.com/language/ref/TableHeadings.html.

Text

Wolfram Research (1991), TableHeadings, Wolfram Language function, https://reference.wolfram.com/language/ref/TableHeadings.html.

CMS

Wolfram Language. 1991. "TableHeadings." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TableHeadings.html.

APA

Wolfram Language. (1991). TableHeadings. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TableHeadings.html

BibTeX

@misc{reference.wolfram_2024_tableheadings, author="Wolfram Research", title="{TableHeadings}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/TableHeadings.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_tableheadings, organization={Wolfram Research}, title={TableHeadings}, year={1991}, url={https://reference.wolfram.com/language/ref/TableHeadings.html}, note=[Accessed: 22-December-2024 ]}