필터 지우기
필터 지우기

Saving multiple figures to a single PDF file

조회 수: 24 (최근 30일)
ardeshir moinian
ardeshir moinian 2021년 4월 6일
답변: Pamudu Ranasinghe 2021년 8월 4일
Hi,
I would like to save several figures in a single PDF. I cannot install any third party software on my computer. Therefore, I can only use Matlab codes/functions. Is there a way appending figures in a PDF can be done fully in Matlab? I am using Matlab R2019a
Thank you!
  댓글 수: 4
Chunru
Chunru 2021년 8월 3일
An even simpler way is livescript.
DGM
DGM 2021년 8월 4일
편집: DGM 2021년 8월 4일
Depending on what is accepted as saving "multiple figures to pdf", you might be able to get by quite simply. If you can accept one figure per page, then append_pdfs() works fine for me. The version I use is the one packaged with Yair Altman's export_fig() on the FEX:
Given that print allows you to print a figure to a single-page pdf using the -dpdf option, all you need to do is do your figure setup (set paperunits, paperposition, etc) and print each figure to a pdf. At that point, you can use append_pdfs to concatenate the single pages into one.
Granted, that's a very simple pdf structure, but it technically is multiple figures to a single pdf. This is what I use for printing weekly network status logs to pdf.

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

답변 (1개)

Pamudu Ranasinghe
Pamudu Ranasinghe 2021년 8월 4일
I think the easiest way is to write all your codes in MATLAB Live script. Then you have two ways to do that
  1. Option 1 - Save Live scripts as PDF a Then your Plots and code both same as a single PDF
  2. Option 2 - Same Live script as a word file and then if you don’t want the code, you can edit it through word processing software and save as a pdf there.

카테고리

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