Java – write a mat file instead of MATLAB header files and libraries

I have some data that I want to save to mat file (version 4 or 5, or any version for this) Capture: I don't want to use the MATLAB library because this code doesn't need to run on the MATLAB machine My program uses Java and C, so any existing library that implements these languages can help me

I did some research, but I didn't find anything in Java / C However, I found that SciPy on Python passed mio4 Py or mio5 Py achieves this I'm thinking about implementing this in Java or C, but it seems a little out of my schedule

So the question is: is there any library in Java or C / C + + that can save mat files without using MATLAB library?

Thank you.

Solution

C: matio

However, if you do not need to deal with some more complex things (nested structures, classes, functions, sparse matrices, etc.), it is not difficult to write matfiles using fwrite See: http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/matfile_format.pdf

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>