Skip to content

Instantly share code, notes, and snippets.

@dlimpid
Created July 16, 2013 22:15
Show Gist options
  • Save dlimpid/6015670 to your computer and use it in GitHub Desktop.
Save dlimpid/6015670 to your computer and use it in GitHub Desktop.
my MATLAB startup/finish setting files
% close pool of parallel computation
if matlabpool('size') > 0
matlabpool close;
end
% display formatting
format compact;
format short g;
% reset random seed
rng('shuffle');
% docked window
set(0, 'DefaultFigureWindowStyle', 'docked');
% open pool of parallel computation
if matlabpool('size') == 0
matlabpool open local 2;
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment