将绘图保存到matlab中的图像文件中:saveas和print之间的区别 [英] save plot into image file in matlab: difference between saveas and print

查看:1069
本文介绍了将绘图保存到matlab中的图像文件中:saveas和print之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道在matlab中将绘图保存到图像文件中时,saveas和print之间有什么区别?在什么情况下都可以使用,在什么情况下只能使用一个?

I wonder when saving plot into image file in matlab, what is the difference between saveas and print? In what cases both can be used and in what cases only one can be used?

谢谢和问候!

推荐答案

我相信SAVEAS只是一个PRINT的包装器。查看SAVEAS的源代码(编辑saveas) - 大量的参数检查,最后只有一个打印行。两种功能都支持相同的格式。 SAVEAS的语法更简单一些。

I believe SAVEAS is just a wrapper for PRINT. Look at the source code for SAVEAS (edit saveas) - a lot of argument checks and only one print line at the end. Both function supports the same formats. SAVEAS has a little easier syntax.

来自SAVEAS备注:如果要控制以图像(位图)格式保存的图形的大小或分辨率(例如BMP或JPG),使用打印命令。

From the SAVEAS remarks: "If you want to control the size or resolution of figures saved in image (bitmapped) formats (such as BMP or JPG), use the print command."

这篇关于将绘图保存到matlab中的图像文件中:saveas和print之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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