How to change columns width in uitable

2 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品


版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by