程序打开由Matlab保存的.fig文件 [英] Program to open .fig files saved by Matlab

查看:633
本文介绍了程序打开由Matlab保存的.fig文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何程序可以打开Matlab保存的.fig文件?

Is there any program able to open .fig files saved by Matlab?

推荐答案

更新2016年4月29日

根据 johnml1135的答案,无花果文件本质上只是mat文件,而johnml1135确定了各种绘图元素的位置存储,用于将无花果文件转换为Python图.

According to johnml1135's answer, fig files are essentially just mat files, and johnml1135 figured out where the various plot elements are stored, for converting a fig file to a Python plot.

原始

根据答案此处 Matlab保存的无花果文件是专有文件二进制格式.我不知道有任何其他软件可以加载这种格式.

According to the answer here the fig file saved by Matlab is in a proprietary binary format. I don't know of any other software capable of loading this format.

您最好的选择可能是根据图形类型将图形从Matlab中另存为pdf/png.

Your best option is probably to have the figure saved as a pdf/png from within Matlab depending on the type of figure.

可能的解决方法

我最近注意到octave将把无花果文件作为结构加载,因此如果您在无法访问Matlab的情况下尝试打开无花果文件,可以尝试编写一个八度音程函数来加载无花果文件并根据struct的内容重新构建图.但是,这可能需要了解有关该图的先验信息.

I recently noticed that octave will load a fig file as a structure, so if you're stuck with trying to open fig files without being able to access Matlab you could try and write an octave function that will load the fig file and reconstitute the plot from the contents of the struct. This would probably require knowing prior information about the plot though.

这篇关于程序打开由Matlab保存的.fig文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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