Decreasing the size of a row in a uitable
2 views (last 30 days)
Show older comments
I have a column of row names in a uitable, however one of the row names is quite long and the uitable automatically centralises the row name and puts a large gap either side of it. This means the data in the next column can't be fully displayed without a scroll bar, which makes it more difficult to interpret quickly. How do I decrease the size of the width of the column containing row names?
Thank you in advance for your help.
0 Comments
Answers (1)
Benjamin Thompson
on 4 Feb 2022
Looks like you can just change the ColumnName property directly:
>> uit.ColumnName
ans =
6×1 cell array
{'Last Name' }
{'Age' }
{'Weight' }
{'Height' }
{'Smoker' }
{'Health Status'}
>> uit.ColumnName{6} = 'Health';
>> uit.ColumnName
ans =
6×1 cell array
{'Last Name'}
{'Age' }
{'Weight' }
{'Height' }
{'Smoker' }
{'Health' }
0 Comments
See Also
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!