Saving graph produced in MATLAB maximized to fullscreen

允我心安 提交于 2019-12-03 09:43:07
Lucas Holt

I have looked for this solution for a very a long time, and believe I have found it. The run-time requirements to save the maximized graph seem to be larger than normal because the resolution and image size must be transformed... just something to be aware of.

figure('units','normalized','outerposition',[0 0 1 1]);
set(gcf, 'PaperPositionMode', 'auto');

the first command maximizes the image on your screen, and the second command prepares it to be saved at that size and resolution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!