save m.file as PDF

10 次查看(过去 30 天)
ANANTA BIJOY BHADRA
Hi. I have a number of figures to be made as PDF. There are around 200 figures and I have to make them PDF with figure captions. How can I convert those figures directly from m.file to PDF? I have used publish command but it did not work.
  4 个评论
Jan
Jan 2022-3-25
"The publish command somehow runs as infinite loop and provides nothing" - this sounds like magic. I assume, there is a bug you are not aware of.
ANANTA BIJOY BHADRA
I think so. I am not very exper on this. I have been trying with different commands to work on. I think exportgraphics suggested by another command can be useful in this regard.

请先登录,再进行评论。

回答(1 个)

Prateek Rai
Prateek Rai 2022-3-21
Hi,
To my understanding, you want to save multiple figures in pdf.
You can use "exportgraphics" function to save plots/figures/graphics content to pdf file.
Refer to following exportgraphics MathWorks Documentation page to know more about it.

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by