MATLAB: How does Matlabe 2017b open more than 1000 figures and then corrupt

MATLABuncommon issues

I opened more than 1000 figures, and there was error messages about java. After I typed 'figure', then a error message appears. Reboot does not work. I just want to reinstall Matlab.

Best Answer

It appears that movegui.m has been corrupted somehow.
In R2017b, line 133 of movegui.m should be
% check if the figure has a menubar
It appears that somehow that line got split after the word 'fig', moving the 'ure' onwards onto a new line. Try editing it to repair that. The file is toolbox/matlab/uitools/movegui.m under the MATLAB installation directory.
Related Question