How to save uitable & uifigure into pdf file?
Mostrar comentarios más antiguos
I am generating a table and graph using uitable and uifigure function, and I need to save the uitable and uifigure into pdf file. However, the pdf file was successfully generated but it's blank. Is there anyway to do that? My codes are as follow: ________________________________________________
fig = uifigure('Name','Numbers');
t = uitable(fig,'Data',[2,4,6,8;1,3,5,7]);
saveas(gcf,'Numbers','pdf')
________________________________________________
Respuesta aceptada
Más respuestas (1)
dpb
el 3 de Jul. de 2023
0 votos
2 comentarios
Alexander
el 10 de Oct. de 2023
I am trying exactly this right now, but the text in a UITable (which is a child of the UIFigure) is not showing in the PDF that is generated. Are children's contents not rendered when using exportapp?
dpb
el 10 de Oct. de 2023
fig = uifigure('Name','Numbers');
t = uitable(fig,'Data',[2,4,6,8;1,3,5,7]);
exportapp(fig,'Numbers.pdf')
winopen('Numbers.pdf')
produced a pdf file with the above content in it...would have to see specific code to see what may have gone wrong in your case.
Categorías
Más información sobre Other Formats 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!