加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – 如何在bash shell中运行MATLAB真的很安静?

发布时间:2020-12-13 23:24:35 所属栏目:Linux 来源:网络整理
导读:参见英文答案 suppress start message of Matlab????????????????????????????????????5个 我在Makefile中使用MATLAB将一些数据转换为eps. 但是它在整个地方展示了它的标志. 例如,当我输入bash时: matlab -nojvm -nodisplay -nosplash -r "display('derp');
参见英文答案 > suppress start message of Matlab????????????????????????????????????5个
我在Makefile中使用MATLAB将一些数据转换为eps.
但是它在整个地方展示了它的标志.

例如,当我输入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个额外的行.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读