保存在MATLAB中生成的图形已最大化到全屏 [英] Saving graph produced in MATLAB maximized to fullscreen

查看:1372
本文介绍了保存在MATLAB中生成的图形已最大化到全屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用以下命令saveas(gcf, 'save.jpg'])在MATLAB中生成图形.但是,保存的图像很小.我想最大化生成的图并保存最大化的图.这可能吗?

I am producing graphs in MATLAB using the following command saveas(gcf, 'save.jpg']). However the image that is saved is small. I would like to maximize the graph produced and save the maximized graph. Is this possible?

推荐答案

我已经很长一段时间都在寻找这种解决方案,并且相信我已经找到了.保存最大化图形的运行时要求似乎比正常情况要大,因为必须转换分辨率和图像大小……这是需要注意的.

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.

这篇关于保存在MATLAB中生成的图形已最大化到全屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆