Creating and loading mat files from c#

Good day,
As the title says already, i would like to create and load matfiles from c#. Currently i do use csmatio for files from mat level 5 to 7.0 , however with the newer v7.3 there is the possibility to reduce the file size and keep good load times for the data. I can currently read those files already with the hdf.pinvoke.dll , however i can only write normal hdf5 files, as mat files require to have the header containing the mat version and we need to be able to create files that matlab can read back.
Ideally it would be best if you could provide a COM dll that takes care of creating such mat files for interoperability between matlab and c#. Do you have any library that you would recommend to use and have tips how to get the mat version header before the hdf5 part starts? Currently i think maybe creating the file first and then open the file with a binary writer and insert a header just at the beginning of the file. Then again i dont know if this could destroy the hdf5 file structure or what to write in the header exactly so matlab identifies it as a v7.3 file.
Also we would like to have small files that still are able to be loaded quite fast. So, i would like to get help towards how to use compression concerning reading and writing mat files.
Regards,
Markus

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Instrument Control Toolbox Supported Hardware 的更多信息

标签

提问:

2020-3-19

编辑:

2020-3-19

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by