How to change columns width in uitable

1 回表示 (過去 30 日間)
Ayman Abdalla
Ayman Abdalla 2021 年 1 月 12 日
編集済み: Adam Danz 2021 年 1 月 15 日
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 日
Set multiple rows of ColumnName strings,
uit.ColumnName{3} = sprintf('Product\nEmissions\n(Kg CO2eq)\n'); % uit is the uitable handle

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by