Automatic resize of tables in MATLAB
10 次查看(过去 30 天)
显示 更早的评论
I have been unsuccesfulyl trying to resize MATLAB tables so that it would automatically fit column width to size of maximum value in the column.
There are some solutions posted but none are working for me.
Is there any simple solution for this problem?
BR; DEJan
回答(2 个)
Luna
2019-1-31
Have you tried java object written here?
jScroll = findjobj(hTable);
jTable = jScroll.getViewport.getView;
jTable.setAutoResizeMode(jTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
You can get findjobj function from FEX below link:
0 个评论
Andre
2019-6-5
Hi,
cellfun(@length, x) provides the lengths of the individual entries (without a loop). It does however not count the number of digits for a number....
Hope it helps,
Andre
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!