Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using mat file in C++ program

Tags:

c++

matlab

Please. Can any one help me ?

I have Mat file include struct of array for features vectors, I need to use this file in C++ program. How can I load this file in my C++ program?

like image 935
zenab Avatar asked Jul 11 '10 00:07

zenab


2 Answers

You could try the matio library. It supports at least up to version 5 mat files (compression and structures I think) and maybe more recent stuff. It seems to be actively developed.

like image 173
robince Avatar answered Nov 03 '22 14:11

robince


Assuming you have MATLAB, you can read the help article on their MAT-file API.

Otherwise, there are various open source MAT file readers. If necessary, I'm sure someone can locate them for you.

like image 35
kwatford Avatar answered Nov 03 '22 12:11

kwatford