MATLAB: Am I unable to correctly set the ‘PaperType’ property for a figure to ‘A4’ in the PAGESETUPDLG dialog in MATLAB 6.5 (R13)

MATLAB

If I execute the following code in MATLAB 6.5 (R13),
figure;
set(gcf,'PaperType','A4')
psize = get(gcf,'PaperSize');
set(gcf,'PaperSize',psize+1)
set(gcf,'PaperSize',psize)
get(gcf,'PaperType')
I get the following result:
ans =
a4letter

Best Answer

Setting the 'PaperType' property to 'A4' from within the PAGESETUPDLG dialog will set the 'PaperSize' property to [ 8.2677 11.6929 ], which is the size of A4 paper in inches, but will set the 'PaperType' property to 'A4letter'.
However, setting the PaperSize property to 'A4' from the Command Prompt:
set(gcf,'papertype','A4');
will set the 'PaperSize' property to the value stated above, and the 'PaperType' property to 'A4', as expected.