Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
Last active September 23, 2015 14:17
Show Gist options
  • Save stefanschmidt/aed055809189bc85800e to your computer and use it in GitHub Desktop.
Save stefanschmidt/aed055809189bc85800e to your computer and use it in GitHub Desktop.
Workaround for graphical glitch in tab bar of Matlab 2014b on iMac
% see also: http://undocumentedmatlab.com/blog/setting-the-matlab-desktop-layout-programmatically
if not(isdeployed) && usejava('jvm') && feature('ShowFigureWindows')
desktop = com.mathworks.mde.desk.MLDesktop.getInstance;
pause(0.7) % wait for gui to load
desktop.restoreLayout('foobar');
clear desktop
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment