Automatic resize of tables in MATLAB
Mostrar comentarios más antiguos
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 comentarios
madhan ravi
el 30 de En. de 2019
illustrate with an example
Dejan Krajcar
el 31 de En. de 2019
Respuestas (2)
Luna
el 31 de En. de 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:
Andre
el 5 de Jun. de 2019
0 votos
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
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!