{"id":366,"date":"2010-02-22T17:29:42","date_gmt":"2010-02-22T17:29:42","guid":{"rendered":"https:\/\/blogs.mathworks.com\/desktop\/2010\/02\/22\/launching-matlab-without-the-desktop\/"},"modified":"2010-02-22T17:29:42","modified_gmt":"2010-02-22T17:29:42","slug":"launching-matlab-without-the-desktop","status":"publish","type":"post","link":"https:\/\/blogs.mathworks.com\/community\/2010\/02\/22\/launching-matlab-without-the-desktop\/","title":{"rendered":"Launching MATLAB without the desktop"},"content":{"rendered":"<p>I hope you don&#8217;t find it weird that I&#8217;m advertising <tt>-nodesktop<\/tt> mode on the Desktop blog. Don&#8217;t worry, I won&#8217;t take it personally if you decide to use this startup option. <tt>-nodesktop<\/tt> 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 &#8220;bells and whistles&#8221; of the regular Command Window or the full Desktop. I&#8217;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 <tt>-nodesktop<\/tt> route, Desktop -> Desktop Layout -> Command Window Only; using <tt>-nodesktop<\/tt> on Windows is not officially supported. <\/p>\n<div align=\"center\">\n<strong>Windows nodesktop<\/strong><br \/>\n<img decoding=\"async\" border=\"0\" src=\"https:\/\/blogs.mathworks.com\/images\/desktop\/michael_katz_nodesktop\/windows_command_window.png\" alt=\"Windows nodesktop\"><br \/>\n<strong>Linux nodesktop<\/strong><br \/>\n<img decoding=\"async\" border=\"0\" src=\"https:\/\/blogs.mathworks.com\/images\/desktop\/michael_katz_nodesktop\/nodesktop_linux.png\" alt=\"Linux nodesktop\">\n<\/div>\n<p>In the <tt>-nodesktop<\/tt> mode, you still have full access to figure windows, and you can bring up pieces of the desktop with commands like <tt>edit<\/tt> and <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/commandhistory.html\"><tt>commandhistory<\/tt><\/a>. You can launch the full desktop with the command <tt>desktop<\/tt>, but doing this puts control with the regular command window, and you&#8217;re left with a non-functioning <tt>-nodesktop<\/tt> 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.<\/p>\n<p>Do not confuse this option with <tt>-nojvm<\/tt> option, which not only does not load the desktop, but does not load java. That means you can&#8217;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&#8217;t recommend using this option.<\/p>\n<p>There&#8217;s also a <tt>-nosplash<\/tt> 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.<\/p>\n<p>For more information on options when launching MATLAB, here is the documentation for <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/matlabwindows.html\">windows<\/a> and <a href=\"https:\/\/www.mathworks.com\/help\/releases\/R2009b\/techdoc\/ref\/matlabunix.html\">unix<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I hope you don&#8217;t find it weird that I&#8217;m advertising -nodesktop mode on the Desktop blog. Don&#8217;t worry, I won&#8217;t take it personally if you decide to use this startup option&#8230;. <a class=\"read-more\" href=\"https:\/\/blogs.mathworks.com\/community\/2010\/02\/22\/launching-matlab-without-the-desktop\/\">read more >><\/a><\/p>\n","protected":false},"author":38,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,8],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/366"}],"collection":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/users\/38"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/comments?post=366"}],"version-history":[{"count":0,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/posts\/366\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/media?parent=366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/categories?post=366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.mathworks.com\/community\/wp-json\/wp\/v2\/tags?post=366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}