为什么我用saveas(gcf,'filename.pdf')得到警告"epstool二进制文件不可用"

Zil*_*mba 5 matlab octave

我正在用八度音绘制轮廓,并使用命令saveas(gcf,'rainzam.pdf')我得到输出正常,但我只是想知道为什么我得到以下警告:

warning: print.m: epstool binary is not available.
Some output formats are not available.
warning: print.m: fig2dev binary is not available.
Some output formats are not available.
Run Code Online (Sandbox Code Playgroud)

这并不严重,但如果有办法让它们消失,我将不胜感激.

ede*_*rag 7

正如解释在这里,您需要安装epstoolfig2dev它的一部分XFIG.

根据您的系统,可能有可用的包.

例如openSUSE,只发出cnf epstool哪个收益率

Try installing with:
    sudo zypper install epstool
Run Code Online (Sandbox Code Playgroud)

如果cnf epstool仍然收益epstool: command not found,那么您需要订阅Publishing回购.最简单的方法是使用一键安装.

同样,sudo zypper install transfig得到fig2dev.


或者,您可以禁用警告:

warning("off", "print.m: epstool binary is not available")
warning("off", "print.m: fig2dev binary is not available")
Run Code Online (Sandbox Code Playgroud)

但那时的功能epstoolfig2dev将无法使用.

  • 这对我很有效,我不再有警告.我为epstool和transfig做了"sudo apt-get install".谢谢@huntj给了我一些宝贵的时间. (2认同)