%# centimeters units
X = 29.7;                  %# A4 paper size
Y = 21.0;                  %# A4 paper size
xMargin = 1;               %# left/right margins from page borders
yMargin = 1;               %# bottom/top margins from page borders
xSize = X - 2*xMargin;     %# figure size on paper (widht & hieght)
ySize = Y - 2*yMargin;     %# figure size on paper (widht & hieght)
%xSize = xSize*1.5;
%ySize = ySize*1.5;
%# create figure/axis
hFig = figure('Menubar','none');
%plot([0 1 nan 0 1], [0 1 nan 1 0]), axis tight
%set(gca, 'XTickLabel',[], 'YTickLabel',[], ...
%    'Units','normalized', 'Position',[0 0 1 1])

%# figure size displayed on screen (50% scaled, but same aspect ratio)
set(hFig, 'Units','centimeters', 'Position',[0 0 xSize ySize])
movegui(hFig, 'center')

%# figure size printed on paper
set(hFig, 'PaperUnits','centimeters')
set(hFig, 'PaperSize',[X Y])
set(hFig, 'PaperPosition',[xMargin yMargin xSize ySize])
set(hFig, 'PaperOrientation','portrait')
