TableFormやMatrixFormに与えるオプションで,一連の次元を行方向または列方向のどちらで出力するかを指定する.
TableDirections
TableFormやMatrixFormに与えるオプションで,一連の次元を行方向または列方向のどちらで出力するかを指定する.
詳細
- TableDirections->Columnは,最初に次元を列として,以降,交互に行,列として出力されることを指定する.
- TableDirections->Rowは,最初に次元を列として出力されることを指定する.
- TableDirections->{dir1,dir2,…}は,各次元がColumnまたはRowとして出力されることを明示する.
例題
すべて開く すべて閉じる例 (1)
スコープ (3)
MatrixFormとともに使う:
MatrixForm[{{a, b}, {c, d}, {e, f}}]MatrixForm[{{a, b}, {c, d}, {e, f}}, TableDirections -> Row]MatrixForm[{{a, b}, {c, d}, {e, f}}, TableDirections -> {Row, Row}]MatrixForm[{{a, b}, {c, d}, {e, f}}, TableDirections -> {Column, Column}]MatrixForm[Array[Subscript[a, ##]&, {4, 3, 2}]]最初の2つの次元を列として,第三次元を行としてフォーマットする:
MatrixForm[Array[Subscript[a, ##]&, {4, 3, 2}], TableDirections -> {Column, Column, Row}]テクニカルノート
-
▪
- 表と行列
関連するワークフロー
- 出力データの格子を作る
履歴
1991 で導入 (2.0)
テキスト
Wolfram Research (1991), TableDirections, Wolfram言語関数, https://reference.wolfram.com/language/ref/TableDirections.html.
CMS
Wolfram Language. 1991. "TableDirections." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/TableDirections.html.
APA
Wolfram Language. (1991). TableDirections. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TableDirections.html
BibTeX
@misc{reference.wolfram_2026_tabledirections, author="Wolfram Research", title="{TableDirections}", year="1991", howpublished="\url{https://reference.wolfram.com/language/ref/TableDirections.html}", note=[Accessed: 04-November-2026]}
BibLaTeX
@online{reference.wolfram_2026_tabledirections, organization={Wolfram Research}, title={TableDirections}, year={1991}, url={https://reference.wolfram.com/language/ref/TableDirections.html}, note=[Accessed: 04-November-2026]}