Saving a table as PDF, - how can I rotate it 90 degrees

조회 수: 7 (최근 30일)
Martin
Martin 2019년 8월 27일
댓글: Adam Danz 2019년 8월 27일
Hello, I want to save a big table() which has like 20 columns. Therefore it would be nice to rotate the PDF paper 90 degrees.
When I save I use this
saveas(gcf,'summary','pdf')
and Matlab give me a size warning. Is there any way to rotate it?
  댓글 수: 2
Adam Danz
Adam Danz 2019년 8월 27일
Are you saving a table, a figure, or a figure that contains a table?
Does the table exist as a variable?
Martin
Martin 2019년 8월 27일
Hi, thanks for turning back even though I was a bit unclear...
Yes the table exist as a variable, but I plot it inside a figure. When the figure "pops up" I am saving it as PDF

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

채택된 답변

Adam Danz
Adam Danz 2019년 8월 27일
편집: Adam Danz 2019년 8월 27일
If the table is saved as a variable, rather than saving a figure that shows the table, save the table itself to a text file. You can do that using writetable().
There are several benefits to saving the table to a text file rather than to a figure. The text file is readable if you ever need to read the table back into matlab. A figure will pixelate the text since the text is converted to an image.
If you'd rather save the figure to pdf, to rotate it, use orient().
  댓글 수: 4
Martin
Martin 2019년 8월 27일
Nice one there Adam! Thanks a lot buddy. Works like a charm!
Adam Danz
Adam Danz 2019년 8월 27일
Glad I could help!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Labels and Annotations에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by