如何在matlab GUI中保存高分辨率轴的图像 [英] how to save imageof axes for high resolution in matlab GUI

查看:811
本文介绍了如何在matlab GUI中保存高分辨率轴的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用comandgetframe保存图像,但分辨率非常低,所以我无法放大。现在我正在使用代码:

I trying save image with the comand 'getframe' but resolution is very low, so I can not give zoom. for now I'm using the code:

[arq,dir] = uiputfile('*.jpg','Output Files');
fileName=fullfile(dir,arq);
f=getframe(handles.axes1);
[x,map]=frame2im(f);
imwrite(x,fileName,'jpg');

我需要保存在jpg中,并且还需要在图形中保存标签(x,y)。怎么办?还有一个比getframe更好的命令?

I need save in jpg and also need save the label (x,y) in graph. How do ? There is another command better than the getframe??

打印是一个很好的命令?

Print is a good command?

谢谢

推荐答案

从FEX尝试 exportfig exportfig

这篇关于如何在matlab GUI中保存高分辨率轴的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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