Save uitable in Pdf

34 views (last 30 days)
Lukas Schmid
Lukas Schmid on 10 Oct 2022
Commented: Lukas Schmid on 12 Oct 2022
Hello all,
since I would like to create a table, to illustrate data in Matlab, I used uitable.
Unfortunately I can't find a solution to save this table in a PDF.
Can someone help me? Also does not necessarily have to be created with uitable , should there be other possibilities?
Thats the code:
fig6 = uifigure;
uit = uitable(fig6,'Data',table_T,'Position',[20 80 500 160.5]);

Accepted Answer

Adam Danz
Adam Danz on 10 Oct 2022
Edited: Adam Danz on 11 Oct 2022
To save an image of the uitable to a pdf file, use exportgraphics. The second argument, filename, will be a path to your pdf document with the .pdf file extension. If you want to add it to an existing pdf file, see the append option.
Lukas Schmid
Lukas Schmid on 12 Oct 2022
I dont know why but today it worked!!
Thank you Adam!!

Sign in to comment.

More Answers (0)


Find more on Printing and Saving 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!

Translated by