Column names wrap around into two or more lines.

13 ビュー (過去 30 日間)
Franc
Franc 2019 年 3 月 30 日
コメント済み: Eddy Fry 2022 年 4 月 26 日
Hi All, Is there a way to have column names wrap around into two or more lines
  4 件のコメント
Walter Roberson
Walter Roberson 2019 年 3 月 31 日
Ah, uitable is different than table() objects.
Are you working with traditional figures, or are you working with App Designer? uitables are quite different internally between the two.
Franc
Franc 2019 年 3 月 31 日
Just the traditional figures

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

採用された回答

Walter Roberson
Walter Roberson 2019 年 3 月 31 日
Traditional uitable() are based on java objects that happen to support HTML constructs. You can begin any ColumnName entry with '<html>', and then after that, at the point you want to move to the next line, put in '<br>'
For example, an entry of '<html>this is a long line,<br>but split'
If you needed automatic adjustment as the widths were resized, then in theory you could use '<html><table>' but it probably won't work well, even if you use '<html><table width="20%"><tr>this is a long long' . It isn't that playing with the width= with percentages or absolute pixels does nothing, but it just doesn't usually do what you would like.
  3 件のコメント
Walter Roberson
Walter Roberson 2020 年 10 月 7 日
uitable inside app designer use completely different formatting methods. I do not know the details.
Eddy Fry
Eddy Fry 2022 年 4 月 26 日
I found that uitable appears to use ASCII, so using newline (ASCII character decimal 10) gives multiple line column headings (using 2022a).
For example:
t.ColumnName = {'Signal' ['Carrier' newline 'Frequency' newline '(Hz)']};

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by