How to publish full uitable to html/pdf
3 views (last 30 days)
Show older comments
Bris on 4 May 2015
Commented: Bris on 11 May 2015
I just recently started experimenting with uitables and publishing results.
The problem is that I have a large uitable (96 x 8) and want to publish it to either html or PDF (maybe both in the long run). But the table is so large that the figure containing the table cannot show the whole table unless you scroll around. So when publishing the result, it only includes a picture of the figure with the scroll bar locked, which means that only half the table is visible in the output. (It should be said that the figure positions are set equal to the extent of the table)
Any ways to show the whole table?
Thanks in advance!
Nalini Vishnoi on 6 May 2015
Edited: Nalini Vishnoi on 6 May 2015
The functionality of publishing/printing scrollable 'uitables' is currently not available in MATLAB.
As a workaround, pull the data from the table using 'get(h,'Data')'. Then save the data to a file using dlmwrite, xlswrite, or the lower level function fprintf. This file can then be opened in another program and printed.
For details on how to programmatically print a Microsoft Excel spreadsheet, see this web page.
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!