Automatic resize of tables in MATLAB
조회 수: 17 (최근 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
답변 (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에서 Migrate GUIDE Apps에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!