Figureのメニューから保存する場合、内部では HGEXPORT 関数 が使用されます。SAVEAS 関数ではないため、両者で出力ファイルに違いが生じます。メニューからの出力と同じサイズのファイルにするためには、下記コマンドを実行してください。
hgexport(gcf,'figure1.jpg',hgexport('factorystyle'),'Format','jpeg');
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!