Properly sized uitable converted into pdf
1 view (last 30 days)
Show older comments
My end goal here is to take an array of Matlab data (52 rows x 12 columns) and simply print it to a simple 8.5 x 11 inch pdf in a readable manner.
Based on some preexisting threads, I have learned that it could be helpful to use a uitable containing the data, and the uitable would be embedded in a figure. This figure can then be printed to pdf using the print or saveas commands.
However, I have encountered a few struggles on what I thought would be a straightforward exercise. In particular:
- The uitable embedded within the figure does not show the whole table completely (unless you use the scrolling bars). I tried adjusting certain properties within the uitable and figure (e.g., Position, PaperPosition, PaperSize, etc.), but the results don't come through as I would intuitively expect.
- The '-fillpage' property does expand the table...but not completely. There is more white space than needed, and part of the table is cut off. Not sure why this is happening, unless it's dependent on issues from #1 above.
- I also tried using the '-noui' property to exclude the scrolling bars (ideally, there would be none), but they came through in the pdf regardless.
I'd welcome guidance on any of the above.
Thank you.
0 Comments
Answers (0)
See Also
Categories
Find more on Develop Apps Using App Designer 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!