Created
July 16, 2013 22:15
-
-
Save dlimpid/6015670 to your computer and use it in GitHub Desktop.
my MATLAB startup/finish setting files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% close pool of parallel computation | |
if matlabpool('size') > 0 | |
matlabpool close; | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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