When you end a session, MATLAB saves the current desktop arrangement. The next time you start MATLAB, the desktop appears like the way you left it. However, tools such as the Help browser, Web browser, and Array Editor do not reopen automatically, even if they were open when you ended the last session. You can use startup options to specify tools that you want to open on startup. For example, to have the Help browser open each time you start MATLAB, add helpbrowser to a startup.m file. For more information, see Startup Options.
You can also use predefined layouts, and you can save your own layouts for later reuse.
To save your current desktop arrangement:
MATLAB stores the arrangements you save as XML files in the preferences folder for MATLAB. Type prefdir in the Command Window to display the location of these XML files. The layout last used in a session is MATLABDesktop.xml. The MATLABDesktop.xml file loads when you start MATLAB and is overwritten when you close MATLAB.
Select Desktop > Desktop Layout, and then select the name of the layout you want to use.
MATLAB includes the following predefined layouts:
When you select a saved or predefined layout, document tools already open in the desktop remain open.
Rename a desktop layout that you have previously created and saved as follows:
You can rename desktop layouts that you created only.
Delete a desktop layout that you have previously created and saved as follows:
You can delete desktop layouts that you created only.
If you are dissatisfied with your current desktop arrangement, you can restore it to the default arrangement as follows:
The default arrangement is that which appeared when you first installed MATLAB.