How to change columns width in uitable

I want to reduce the width of [product emissions (kg co2eq)] By writing it in vertical way such as [Product . Emission . (kg co2eq)]

1 件のコメント

Ayman Abdalla
Ayman Abdalla 2021 年 1 月 12 日
I tried to type it 'Product\n Emissions\n (Kg CO2eq)\n ' but it doesn't work

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

回答 (1 件)

Adam Danz
Adam Danz 2021 年 1 月 12 日
編集済み: Adam Danz 2021 年 1 月 15 日

0 投票

Set multiple rows of ColumnName strings,
uit.ColumnName{3} = sprintf('Product\nEmissions\n(Kg CO2eq)\n'); % uit is the uitable handle

カテゴリ

ヘルプ センター および File ExchangeApp Building についてさらに検索

製品

リリース

R2018b

質問済み:

2021 年 1 月 12 日

編集済み:

2021 年 1 月 15 日

Community Treasure Hunt

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

Start Hunting!

Translated by