%--------------------------------------------------------------------%
% Alison Chaiken, sole author and maintainer %
% ------------------------------------------------------ %
% GUI-based Matlab and FEMLAB data analysis, instrument %
% control, statistical analysis, finite-element modelling, %
% image acquisition and analysis %
% ------------------------------------------------------- %
% alchaiken@gmail.com %
% http://www.exerciseforthereader.org/ %
% (001)650-279-5600 %
%--------------------------------------------------------------------%
%Move current figure to the left of the screen
% 0 is the root window, that is, the screen
ScreenSize=get(0,'ScreenSize');
% OuterPosition includes title bar and other such decorations while
% Position does not
WindowGeometry=get(gcf,'OuterPosition');
centerX = ScreenSize(3)/2;
centerY = ScreenSize(4)/2;
% parameters are [left bottom width height]
% Buggy: in Fedora 8 and R2009a, not all the way in corner
set(gcf,'OuterPosition',[0 0 WindowGeometry(3) WindowGeometry(4)])