How to save different data into same file?
2 次查看(过去 30 天)
显示 更早的评论
I first make a table and then plot a graph (figure) and I want to save both table and figure it into the same PDF file. However, only the graph is saved successfully into the file but not the table. Is it possible to do so? Pls help! Thank you! My codes are as follow:
fig = figure('Name','Numbers'); t = uitable(fig,'Data',[2,4,6,8;1,3,5,7]); saveas(fig,'Numbers','pdf')
fig=figure('Name','Timing Diagram'); x=[0:1:5]; d=[0 1 0 1 0 1]; stairs (x,d) saveas(fig,'Numbers','pdf')
0 个评论
回答(1 个)
OCDER
2018-6-26
Seems like this was already answered here:
You'll have to download the export_fig here: https://www.mathworks.com/matlabcentral/fileexchange/23629-export-fig
Why this export_fig isn't a built-in Matlab command is confusing...
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!