在 clojure / Incanter 中加载复杂的 MATLAB .mat 文件
在我寻求使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
快速 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.
到目前为止,我最好的选择是在 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.