Automatic resize of tables in MATLAB
17 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposte (2)
Luna
il 31 Gen 2019
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 Commenti
Andre
il 5 Giu 2019
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 Commenti
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!