How to change columns width in uitable

1 visualización (últimos 30 días)
Ayman Abdalla
Ayman Abdalla el 12 de En. de 2021
Editada: Adam Danz el 15 de En. de 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 comentario
Ayman Abdalla
Ayman Abdalla el 12 de En. de 2021
I tried to type it 'Product\n Emissions\n (Kg CO2eq)\n ' but it doesn't work

Iniciar sesión para comentar.

Respuestas (1)

Adam Danz
Adam Danz el 12 de En. de 2021
Editada: Adam Danz el 15 de En. de 2021
Set multiple rows of ColumnName strings,
uit.ColumnName{3} = sprintf('Product\nEmissions\n(Kg CO2eq)\n'); % uit is the uitable handle

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos


Versión

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by