How to run MATLAB in a bash shell REALLY quiet?

I use MATLAB in a Makefile to convert some data to eps. But he displays his logo everywhere.

For example, when I enter in bash:

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

I get:

  < MATLAB (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 

I understand that MATLAB is not a python that can just

 python -c "print 'zoom'" 

but is there a way to stop printing the MATLAB logo?

+4
source share
1 answer

Well, I'm not a matlab expert, but you can always do something as ugly as:

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

Please note that β€œ+10” may change in accordance with your version or license of Matlab. For a license, there are, for example, 3 additional lines in the class.

+1
source

Source: https://habr.com/ru/post/1490143/


All Articles