I tried the following script in Matlab 2014b and 2015a, but the size of the EMF-file is not satisfactory:
fig = figure; bode(1/tf('s'));
set(fig, 'Position', [0 0 400 300]);
print(fig,'test1','-dpng','-r0','-loose'); % here the result is a picture with 300 x 400 ->ok
print(fig,'test2','-dmeta','-r0','-loose'); % here the size is 215,19 x 286,69 -> not ok
I tried also to use:
set(fig,'PaperUnits','points','PaperPosition',[0 0 400 300])
But it does not change anything. It makes also no difference if '-loose' is used or not. Where is my mistake?
Edit: Can someone test the script in Matlab 2015b or 2013b?
Remark: Someone claimed that an EMF-graphic has not a size. It has one, because it is designed for printers where you exactly specifiy the size how it is printed.
Thanks for your help.