Is there a way to suppress the startup help message when running MATLAB from the command line?

38 views (last 30 days)
Is there a way to suppress the following startup message when running MATLAB from the command line?
< M A T L A B (R) >
Copyright 1984-2009 The MathWorks, Inc.
Version 7.8.0.347 (R2009a) 32-bit (glnx86)
February 12, 2009
To get started, type one of these: helpwin, helpdesk, or demo.
For product information, visit www.mathworks.com.
This is in a sense a command-line splash "screen" and one would expect it to be suppressed using the -nosplash switch, but it's not.
I am capturing the results of code block evaluation in a non-session based manner (for an example, you may see Emacs Org mode, Babel, source code blocks; but this question is independent of my particular usage, of course) and I want to get rid of this message using a, possibly undocumented, command-line switch, rather than hacking a hook function in Lisp to strip those lines off.
Thanks.

Answers (2)

Jan
Jan on 25 Dec 2011

You can edit the function matlabrc.m. At least the "To get started..." message is not useful after some years of using Matlab day by day.

I've use the -r switch to call a function, which prints "$$$ Start of output $$$" before the actual processing is started. Then the external caller can identify where to cut the output.

I assume using Matlab in engine mode is more useful.


Walter Roberson
Walter Roberson on 25 Dec 2011
My understanding is that suppressing the message is a violation of the MATLAB Terms & Conditions. (Likewise, it is a violation of the Terms & Conditions to change the program icon, including for a program compiled using MATLAB Compiler.)
I never bothered looking for undocumented command line switches.
The undocumentedmatlab site is not likely to have the information either: Yair is very conscientious about keeping within the Terms & Conditions.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!