Is it possible to join pdf files with MATLAB?
66 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mr M.
el 29 de Dic. de 2017
Editada: Franco Dave
el 22 de Nov. de 2021
Is it possible to join pdf outputs (plots or pictures/images) into a single pdf file with MATLAB?
4 comentarios
Nickolas Blank
el 16 de Sept. de 2020
type:
publish('my_first_script.m','pdf')
into your command window, of course using the title of your script in the my first script section and then it will merge any plots you have made with that script and that script into one single file.
Respuesta aceptada
Rik
el 29 de Dic. de 2017
I don't know an easy way with Matlab, but you can trivially solve this with pdfLaTeX. You can even build this file with Matlab.
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdf[pages=-]{name_of_pdf_file1.pdf}
\includepdf[pages=-]{name_of_pdf_file2.pdf}
\end{document}
(the pages=- switch means that it will include all pages, not just the first)
Save this as a .tex file, install MikTeX (or any other package manager) and run pdflatex your_file_name.tex in your command prompt (or with system from Matlab)
0 comentarios
Más respuestas (3)
Jan
el 29 de Dic. de 2017
What are the inputs? Existing PDF files or a set of figures? For the latter, you can print to a PS file with the '-append' flag at first and use the free GhostScript to convert the PS to a PDF file. This is done e.g. in the famous export_fig also.
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!