且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在不使用matlab头文件和库的情况下编写MAT文件

更新时间:2021-10-06 00:57:38

C: matio

Java: jmatio

(我真的很想,所以我会告诉你学习谷歌)

C: matio
Java: jmatio
(I'm really tempted to, so I will, tell you to learn to google)

但实际上,使用 fwrite 编写matfiles并不难,如果你不需要处理一些更复杂的东西(嵌套结构,类,函数,稀疏矩阵等)。

参见: http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/matfile_format.pdf

But really, it's not that hard to write matfiles using fwrite if you don't need to handle some of the more complex stuff (nested structs, classes, functions, sparse matrix, etc).
See: http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/matfile_format.pdf