从MATLAB matfile在C#中导入/读/负载变量 [英] Import / read / load variables from matlab matfile in C#

查看:253
本文介绍了从MATLAB matfile在C#中导入/读/负载变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找了一段时间,看是否有人已经做在CSHARP阅读Matlab的垫文件中的任何工作,似乎没有什么在那里。

I've been searching for a while to see if anyone has done any work on reading Matlab mat files in CSharp, and it seems that there is nothing out there.

有没有人见过的任何解决方案?

Has anybody seen any solutions?

我只是不能导出我的垫文件为文本,然后将它们读入到我的C#code,因为有相当复杂的结构。

I can't simply export my mat files to text and then read them into my C# code, because there are fairly complex structures.

我不喜欢国米用Matlab操作,我不想使用Python(的 SciPy的与loadmat )两种。

I don't like to inter operate with Matlab and I don't want to use Python (SciPy with loadmat) either.

推荐答案

要尝试一种选择是在提交的 CSMatIO 通过大卫紫儿的上的 MathWorks的文件交换。它是.NET 2.0的API,让你阅读.MAT文件第5级。

One option to try is the submission CSMatIO by David Zier on the MathWorks File Exchange. It's an API for .NET 2.0 that will allow you to read level 5 .mat files.

如果你要读.MAT新的文件格式,你可以先将.MAT文件加载到MATLAB和使用的保存函数的版本的选项。

If you have to read newer .mat file formats, you can first load your .mat file into MATLAB and resave it as an older format using the SAVE function's version option.

这篇关于从MATLAB matfile在C#中导入/读/负载变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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