Formatting column names in a table of data

16 ビュー (過去 30 日間)
Batool Mutawe
Batool Mutawe 2021 年 11 月 19 日
回答済み: Srijith Kasaragod 2021 年 11 月 24 日
I have calculated values for some variables and would like to produce a table containing those values, how do I format the column/row names to show Latex text (ex. )?
  5 件のコメント
Peter Perkins
Peter Perkins 2021 年 11 月 23 日
Really, this is supported to allow foreign-language variable names, andvar names containing parens and dots and other punctuation. Spaces came along because it really was not clear how to sensibly draw a cutoff line. There are subtleties that are not apparent.
You are both correct that arbitrary var names are a double-edged sword.

サインインしてコメントする。

回答 (1 件)

Srijith Kasaragod
Srijith Kasaragod 2021 年 11 月 24 日
Hi Batool,
I assume you wish to name table variables as LATEX text and display the table in command window. MATLAB supports LATEX text in charting, annotations and publishing outputs. In such instances, the LATEX expressions will be interpreted as LATEX text and displayed appropriately. Command window does not render LATEX expressions and cannot be used to display publishable output. Instead the variable name would be displayed as the quoted LATEX expression.
Hope this helps!

タグ

製品


リリース

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by