在 clojure / Incanter 中加载复杂的 MATLAB .mat 文件

发布于 2024-12-14 20:46:45 字数 227 浏览 6 评论 0原文

在我寻求使用 MATLAB 并将其替换为 Incanter / Clojure 的过程中,我需要能够加载或至少转换几 TB 的 matlab .mat 文件。

由于这些是相当复杂的 mat 文件,结构体和元胞数组以各种不同的方式嵌套,因此我认为将它们导出到任何类型的文本文件并稍后读取它们并不容易。

Clojure(或 java?!) 中是否有任何库可以帮助我?

任何其他建议也非常受欢迎。

In my quest to get ride of MATLAB and replace it with Incanter / Clojure I need to be able to load or at least convert a few terabytes of matlab .mat files.

As these are rather complex mat files, with structs and cell arrays nested in all different manners, I see no easy was to export them to any sort of text file an read them later.

Is there any libraries in Clojure (or java?!) that can help me?

Any other suggestions are also very welcome.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

勿忘心安 2024-12-21 20:46:45

快速 Google 搜索显示 JMatIO,这是一个用于读取 Matlab 5 .mat 文件的 Java 库。从那里可以轻松使用 Clojure。

A quick Google search shows JMatIO, a Java lib to read Matlab 5 .mat files. From there it's easy to use Clojure.

屋檐 2024-12-21 20:46:45

到目前为止,我最好的选择是在 MATLAB(或 Octave 或使用 scipy/numpy 的 Python)中读取 mat 文件并将它们写入文本,然后在 Incanter 中读取它们。

任何建议都非常受欢迎。

So far my best bet is to read the mat files in MATLAB (or Octave or in Python with scipy/numpy) and write them to text, then read them in Incanter.

Any suggestions are very welcome.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文