matlabmatlab-gui

How to reset MATLAB layout to default (commandline)


How do I reset the layout of Matlab in commandline instead of clicking it (shown below)? Googled but could not find, this question/answer might help others to find this information.

enter image description here


Solution

  • From undocumentedmatlab.com:

    desktop = com.mathworks.mde.desk.MLDesktop.getInstance;
    desktop.restoreLayout('Default');