TextTable
Version 1.0.0 (4.27 KB) by
Michael Brancato
Quickly generate nicely formatted text tables. Use control over text wrapping, row specific color and adjustment of border format.
%% Example Usage
t = TextTable();
t.table_title = 'Example Table';
t.addColumns( { 'Col 1', 'Col 2', 'Col 3' }, [ 10 -1 -1 ], [ 2 2 2 ] );
t.addRows( { 'The text will wrap', 'Column fit', 'N/A'; 'Col1,Row2', 'Col2,Row2', '' } );
t.text_wrap = true;
s = t.print( true, true );
Cite As
Michael Brancato (2024). TextTable (https://www.mathworks.com/matlabcentral/fileexchange/107944-texttable), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Acknowledgements
Inspired by: cprintf - display formatted colored text in Command Window
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |