필터 지우기
필터 지우기

How to save different data into same file?

조회 수: 1 (최근 30일)
Tai Jia Xun
Tai Jia Xun 2018년 6월 26일
댓글: Tai Jia Xun 2018년 6월 26일
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')

답변 (1개)

OCDER
OCDER 2018년 6월 26일
Seems like this was already answered here:
Why this export_fig isn't a built-in Matlab command is confusing...
  댓글 수: 3
OCDER
OCDER 2018년 6월 26일
Here are the readme files for that function. It's a complex one.
Tai Jia Xun
Tai Jia Xun 2018년 6월 26일
Oh thanks! will look into it!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by