how to add title/caption to FormalTable ?

22 ビュー (過去 30 日間)
SRUSHTI KHATAU
SRUSHTI KHATAU 2021 年 11 月 20 日
編集済み: Randolph Leiser 2024 年 12 月 17 日
I want to add caption/title to the table. I am making tables using FormalTable but could not find the property to add caption to it. Please help

採用された回答

Srijith Kasaragod
Srijith Kasaragod 2021 年 11 月 23 日
Hi Srushti,
Please refer this answer which captures the same issue.
Regards.
  4 件のコメント
SRUSHTI KHATAU
SRUSHTI KHATAU 2021 年 11 月 25 日
Thank you so much.
Randolph Leiser
Randolph Leiser 2024 年 12 月 16 日
編集済み: Randolph Leiser 2024 年 12 月 17 日
This answer works if you want to do minimal formatting, but BaseTable seems to overwrite or not fully interpret the settings of a Table or FormalTable. For example if we change the style lines of your table creation to:
t.TableEntriesStyle = { ColSep("none"), ...
RowSep("none"), ...
Border("none"), ...
Width("1in")};
then executing the code yields a table with only the bottom and right border removed.
Similarly, trying dashed
t.TableEntriesStyle = { ColSep("dashed"), ...
RowSep("dashed"), ...
Border("dashed"), ...
Width("1in")};
gives this table
I am not sure if there is a way to maintain the formatting of the original table better, as BaseTable does not have Border properties than can be modified.

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by