linux - 如何在 bash shell 中真正安静地运行 MATLAB?

标签 linux bash matlab

<分区>

我在 Makefile 中使用 MATLAB 将一些数据转换为 eps。 但它到处都显示它的 Logo 。

例如,当我输入 bash 时:

matlab -nojvm -nodisplay -nosplash -r "display('derp');exit"

我得到:

                        < M A T L A B (R) >
              Copyright 1984-2012 The MathWorks, Inc.
                R2012a (7.14.0.739) 64-bit (glnxa64)
                          February 9, 2012



 To get started, type one of these: helpwin, helpdesk, or demo.
 For product information, visit www.mathworks.com.

 derp

我知道 MATLAB 不是 python 就可以

python -c "print 'zoom'"

但是有什么方法可以让它停止打印 MATLAB 标志吗?

最佳答案

嗯,我不是 matlab 专家,但你总是可以做一些像这样丑陋的事情:

matlab -nojvm -nodisplay -nosplash -r "display('derp');exit" | tail -n +10

请注意,“+10”可能会根据您的 Matlab 版本或许可证而变化。例如,对于类许可证,有 3 行。

关于linux - 如何在 bash shell 中真正安静地运行 MATLAB?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17513745/

相关文章:

c++ - 大型二维数组给出段错误

linux - 在 Linux 中,在进入系统调用时,%eax 的值是多少? (不是 orig_eax)

bash - 循环分钟并用 bash 回显

Linux:在子shell中运行

string - 字符串的 meshgrid 等价物

matlab - 在 Matlab R2014b+ (HG2) 上获得可靠的渲染

linux - 永久反转补丁文件

php - Dockerfile 中 php :8. 0-fpm-alpine 的 OCI8 扩展

bash - Windows .cmd 中 rm 和 mv 的等价物

matlab - 运行带参数的 matlab 程序