如何在Octave中打开.mat文件? [英] How do you open .mat files in Octave?

查看:1177
本文介绍了如何在Octave中打开.mat文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要打开并查看其内容的".mat"文件.由于没有MATLAB,因此下载了GNU的Octave.由于我正在使用Mac的TERMINAL,因此我不确定如何打开".mat"文件,以便可以看到其内容.谁能帮我这个?谢谢!

I have a ".mat" file that I want to open and see the contents of. Since I don't have MATLAB, I downloaded GNU's Octave. Since I'm working on Mac's TERMINAL, I'm not exactly sure how to open the ".mat" file so that I can see the contents. Can anyone help me with this? Thanks!

推荐答案

不确定您可能拥有哪个版本的.mat文件,或者不确定Octave是否紧跟最新的Matlab格式.

Not sure which version of .mat file you might have, or whether Octave keeps up with the latest Matlab formats.

此处的链接可能是一个不错的开始.

最重要的是,您可以在八度提示下说:load MyMatFile.mat.

Bottom line is that you can say: load MyMatFile.mat right at the Octave prompt.

以防万一您不得不编写代码来读取.mat文件:我之前已经做过,这并不困难,但是很耗时. 2012a的Mat文件格式

In case you wind up having to write code to read the .mat file ever: I've done this before and it was not difficult, but was time-consuming. Mat file format for 2012a

这篇关于如何在Octave中打开.mat文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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