Ask Your Question

Using Matlab data files (.mat) in C++

asked 2013-02-02 15:20:12 -0600

marwa allam gravatar image

updated 2013-02-19 01:08:26 -0600

sammy gravatar image

I want to use the data in .mat file inside c++ code. I am using visual studio 2010 and Matlab r2011b. is there any library or function or anything in c++ language enable me to read mat file?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-02-18 22:30:08 -0600

Mahdi gravatar image

updated 2013-06-06 02:48:08 -0600

You could try the matio library. It seems to be actively developed.

Here you could find its user guide: Link

edit flag offensive delete link more


thanks .. but don't you have a good tutorial to use this library

marwa allam gravatar imagemarwa allam ( 2013-03-11 02:46:38 -0600 )edit

This is rather out of the scope of this Q&A forum (read the FAQ). Go to their specific library forum and ask for samples there.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-06-06 02:55:33 -0600 )edit

As part of my GSOC project I'll be adding Matlab file support to OpenCV. It should see its way into early versions of OpenCV 3.x. In the meantime, matio is indeed a good option.

hilton bristow gravatar imagehilton bristow ( 2013-06-13 20:47:33 -0600 )edit

I'm unable to link the library.. can anybody help me?

a.sujit gravatar imagea.sujit ( 2015-08-11 01:37:04 -0600 )edit

All guidelines are here! As to the future, please open your own question. Thank you in advance!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-08-11 02:51:18 -0600 )edit

Question Tools


Asked: 2013-02-02 15:20:12 -0600

Seen: 7,478 times

Last updated: Jun 06 '13