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 个评论

I tried to type it 'Product\n Emissions\n (Kg CO2eq)\n ' but it doesn't work

请先登录,再进行评论。

回答(1 个)

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

类别

帮助中心File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品

版本

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by