在MATLAB中自动将图形写入文件 [英] Write a figure to a file automatically in MATLAB

查看:77
本文介绍了在MATLAB中自动将图形写入文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道是否可以在MATLAB中将图形自动写入.eps文件吗?

Does anyone know if it's possible to automatically write a figure out to a .eps file in MATLAB?

我正在运行一个生成大量图形的脚本,如果我不必手动保存每个图形,那就太好了!

I'm running a script that produces a large number of graphs, and it'd be nice if I didn't have to manually save each one!

推荐答案

打印图形或保存为特定的文件格式...

Print figure or save to specific file format...

print(filename,formattype)使用指定的文件格式(例如print('BarPlot','-dpng'))将当前图形保存到文件中.如果文件名不包含扩展名,则打印后会附加适当的扩展名.

print(filename,formattype) saves the current figure to a file using the specified file format, such as print('BarPlot','-dpng'). If the file name does not include an extension, then print appends the appropriate one.

print(filename,formattype,formatoptions)指定可用于某些格式的其他选项.

print(filename,formattype,formatoptions) specifies additional options that are available for some formats.

print将当前图形打印到默认打印机...

print prints the current figure to the default printer...

这篇关于在MATLAB中自动将图形写入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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