MATLAB: Figure file size is very large

emfMATLAB

for example
MATLAB R2016a, windows 8.1, (1920×1080)
h1=figure(1)
x=[1:10000];
plot(x,sin(x));
print(h1,'fig01','-dmeta','-painters','-r0');
print(h1,'fig01','-dpng','-painters','-r0');
savefig(h1, 'fig01.fig');
fig : 556 KB, emf : 151 KB, png : 16 KB
Fig and emf file size are very larger than png file.
Is it right?

Best Answer

This is expected. .fig files are not just copies of the image data: .fig files are complete copies of the MATLAB data structures for storing the plots and all uicontrols and axes settings as well.
Related Question