MATLAB Community

MATLAB, community & more

Launching MATLAB without the desktop

I hope you don’t find it weird that I’m advertising -nodesktop mode on the Desktop blog. Don’t worry, I won’t take it personally if you decide to use this startup option. -nodesktop behaves differently depending if you are on Windows vs Linux or Mac. On Windows we provide a boring Command-Window only interface that lacks the “bells and whistles” of the regular Command Window or the full Desktop. I’m too biased to offer an opinion, but some of our users have reported they find this mode aesthetically pleasing. FYI, we recommend starting the MATLAB Desktop with the Command Window only layout instead of the -nodesktop route, Desktop -> Desktop Layout -> Command Window Only; using -nodesktop on Windows is not officially supported.

Windows nodesktop
Windows nodesktop
Linux nodesktop
Linux nodesktop

In the -nodesktop mode, you still have full access to figure windows, and you can bring up pieces of the desktop with commands like edit and commandhistory. You can launch the full desktop with the command desktop, but doing this puts control with the regular command window, and you’re left with a non-functioning -nodesktop command window window. When you bring up the Desktop in this manner, closing the Desktop window will return control to the original command window; it does not exit MATLAB.

Do not confuse this option with -nojvm option, which not only does not load the desktop, but does not load java. That means you can’t later bring up the desktop, (in the future) launch figure windows, or use any commands that use java libraries, like some of the network and file i/o functions. We don’t recommend using this option.

There’s also a -nosplash option for starting MATLAB, but this just skips the splash screen (the first window with the picture of the membrane and the version number). It still loads into the desktop.

For more information on options when launching MATLAB, here is the documentation for windows and unix.

|
  • print

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.