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 Kommentar

Ayman Abdalla
Ayman Abdalla am 12 Jan. 2021
I tried to type it 'Product\n Emissions\n (Kg CO2eq)\n ' but it doesn't work

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Adam Danz
Adam Danz am 12 Jan. 2021
Bearbeitet: Adam Danz am 15 Jan. 2021

0 Stimmen

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

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2018b

Gefragt:

am 12 Jan. 2021

Bearbeitet:

am 15 Jan. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by