With .mat matlab file?

With .mat matlab file?

yingwu's picture

Hi,

My results need to be saved by 4 arrays. Now I do this by using the format of .txt file. I am wondering there is any existing routine I can use to save the 4 arrays in the format of .mat file? MAT file is for matlab to save matrix.

BTW, it will be great if there is also any existing routine to read the data in MAT file.

Thanks very much.

Ying

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Steve D. (Intel)'s picture

Hi Ying,

Mathworks provides a Fortran API. Can you take a look at this Mathworks web page and let us know if it provides the capability you're looking for:

http://www.mathworks.com/access/helpdesk/help/techdoc/apiref/matopen.html

Regards,
Steve D.
Intel Developer Support

eliosh's picture

Ying,

As Steve pointed out, Mathworks provides an API for reading/writing mat files.

In addition you can use severa other (open) data formats. Have a look at NetCDF and HDF.

Using an open standard will provide a great deal of flexibility and help to avoid a vendor lock.

zuch's picture

HiYing

mat files version 7.3 are HDF5 based and you could probably use other libraries to read and write. see http://www.hdfgroup.org/HDF5/

Cheers,

Zurab

Login to leave a comment.