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 月 19 日
The question is not clear: "convert those figures directly from m.file to PDF" - what is wanted in the PDFs? The source code as text or the output as image?
What does "did not work" mean? If you mention, which problems you have, the readers could help to fix them.
If the contents of the figures are needed, simply use the print() command or the modern exportgraphics().
ANANTA BIJOY BHADRA
ANANTA BIJOY BHADRA 2022 年 3 月 25 日
I will get the figures from a loop. After that, the figures has to be converted to PDF without human interference. I need only the output figures, not the m.file code.
The publish command somehow runs as infinite loop and provides nothing.
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
ANANTA BIJOY BHADRA 2022 年 3 月 25 日
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 日

1 投票

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.

1 件のコメント

ANANTA BIJOY BHADRA
ANANTA BIJOY BHADRA 2022 年 3 月 25 日
Yeah I think it will work.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangePrinting and Saving についてさらに検索

質問済み:

2022 年 3 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by