Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

With .mat matlab file?

yingwu
Beginner
712 Views

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

0 Kudos
3 Replies
Stephen_D_Intel
Employee
712 Views

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

0 Kudos
eliosh
Beginner
712 Views

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.

0 Kudos
zuch
Beginner
712 Views

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

0 Kudos
Reply