How to change columns width in uitable

조회 수: 2 (최근 30일)
Ayman Abdalla
Ayman Abdalla 2021년 1월 12일
편집: Adam Danz 2021년 1월 15일
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