How to change columns width in uitable

2 vues (au cours des 30 derniers jours)
Ayman Abdalla
Ayman Abdalla le 12 Jan 2021
Modifié(e) : Adam Danz le 15 Jan 2021
I want to reduce the width of [product emissions (kg co2eq)] By writing it in vertical way such as [Product . Emission . (kg co2eq)]
  1 commentaire
Ayman Abdalla
Ayman Abdalla le 12 Jan 2021
I tried to type it 'Product\n Emissions\n (Kg CO2eq)\n ' but it doesn't work

Connectez-vous pour commenter.

Réponses (1)

Adam Danz
Adam Danz le 12 Jan 2021
Modifié(e) : Adam Danz le 15 Jan 2021
Set multiple rows of ColumnName strings,
uit.ColumnName{3} = sprintf('Product\nEmissions\n(Kg CO2eq)\n'); % uit is the uitable handle

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by