Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting Matlab textually

In Linux terminal, I was wondering what differences are between the following four options for Matlab command?

matlab -nojvm -nodesktop -nodisplay -nosplash
  1. I searched on the internet, and the four options seem to be redundant, especially used together?
  2. Can they be ordered from more graphical to less graphical, or less textural to more textural? For example, can they be ordered in some way from weak to strong as: -nodesktop < -nojvm <-nodisplay?
  3. How do you know the JVM is started in -nodisplay, and not in -nojvm? In other words, what functionality that is provided by JVM still work under -nodisplay?

Thanks and regards!

like image 313
Tim Avatar asked Mar 14 '12 13:03

Tim


1 Answers

This is all explained in the MATLAB documentation here: http://www.mathworks.nl/help/techdoc/ref/matlabunix.html.

-nodisplay: Start the Sun Microsystems JVM software, but do not start the MATLAB desktop. Do not display any X commands, and ignore the DISPLAY environment variable,

-nodesktop: Start MATLAB without bringing up the MATLAB desktop. The JVM software is started. Use the current window in the operating system to enter commands. Use this option to run without an X-window, for example, in VT100 mode, or in batch processing mode. Note that if you pipe to MATLAB using the > constructor, the nodesktop option is used automatically. With nodesktop, MATLAB does not save statements to the Command History. With nodesktop, you can still use most development environment tools by starting them via a function. For example, use preferences to open the Preferences dialog box and doc to open the Help browser. Do not use nodesktop to provide a Command Window-only interface; instead, select Desktop > Desktop Layout > Command Window Only.

-nojvm: Start MATLAB without the JVM software. Use the current window to enter commands. The MATLAB desktop does not open. Any tools that require Java software, such as the desktop tools, cannot be used. Handle Graphics and related functionality are not supported; MATLAB produces a warning when you use them.

-nosplash: starts MATLAB but does not display the splash screen during startup.

like image 136
AVH Avatar answered Oct 12 '22 03:10

AVH