MATLAB将多个图形保存为PDF [英] MATLAB Saving multiple figures to a PDF

查看:146
本文介绍了MATLAB将多个图形保存为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么办法吗?

我知道如何使用saveas( saveas(1,filename,'pdf'); )将一个图形保存到PDF文件,但是是否可以添加多个?所以像( saveas(1,2,3)filename,'pdf')); .

I know how to use saveas (saveas(1, filename, 'pdf');) to save one figure to a PDF file, but is it possible to add multiples? So something like (saveas(1,2,3) filename, 'pdf'));.

谢谢

推荐答案

我不这么认为-您需要以某种方式增加文件名.我会用类似的东西:

I don't think so - you need to increment the file name in some manner. I would use something like:

for ii=1:3
    saveas(ii,[filename '-' num2str(ii)],'pdf)
end

作为一个旁注,在将matlab生成的pdf包括在稿件提交中时,我遇到了多次困难.我当前的解决方案是生成eps文件并使用shell脚本进行转换.

As a side note, I have had repeated difficulties when including the pdfs generated by matlab in a manuscript submission. My current solution is to produce eps files and convert with a shell script.

r/

这篇关于MATLAB将多个图形保存为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆