从命令行运行matlab脚本时禁止版本信息

时间:2017-10-08 22:46:56

标签: matlab

从命令行运行matlab脚本(例如matlab -nosplash -nodesktop -nojvm -r "some_m_file; quit;")时,类似于以下内容的内容不可避免地发送到stdout

$ matlab -nosplash -nodesktop -nojvm -r "fprintf('hello world\n'); quit;"

                            < M A T L A B (R) >
                  Copyright 1984-2016 The MathWorks, Inc.
                   R2016b (9.1.0.441655) 64-bit (glnxa64)
                             September 7, 2016


For online documentation, see http://www.mathworks.com/support
For product information, visit www.mathworks.com.

hello world

此文字可以被删除吗?可以通过tail -n+11管道脚本输出来删除它(假设版本中的行数是稳定的)但我想知道是否有一个命令行选项到Matlab将阻止它首先打印

0 个答案:

没有答案
相关问题