tags:

views:

138

answers:

2

How can I read a Matlab cell array stored as a .mat file and having 3*3*2 multidimensional double data into a c/c++ array ?

A: 

This doc describes the interface to read and write MAT files in C/C++:

http://www.mathworks.com/access/helpdesk/help/techdoc/matlab_external/f39876.html#f13830

yuk
I read the docs but I'm a little confused. How can i import data from the mxarray data structure to a primitive data structure like a multi-dim double array ? can anyone give me a code snippet..
iceman
I saw the file matdgns.c
iceman
+1  A: 

The MATLAB file format is documented here. Doesn't look too hairy.

Edit: Sorry, the link got corrupted.

P-Nuts
The documentation link you followed is no longer valid.
iceman