将绘图保存到matlab中的图像文件中:saveas和print之间的区别

Tim*_*Tim 7 printing matlab image save-as

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

感谢致敬!

yuk*_*yuk 8

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

来自SAVEAS的评论: "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."