Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Reading/Writing MAT files in C
Posted:
May 11, 2012 12:35 PM
|
|
"Ben" wrote in message <jojd47$k7c$1@newscl01ah.mathworks.com>... > "Jerome " <the_rome@hotmail.com> wrote in message <jojci3$he4$1@newscl01ah.mathworks.com>... > > HI, > > I am trying to compile the following code, but am unsuccessful. I have not seen any documentation of using the mat.h file. Any suggestions would be great > > > > #include <stdio.h> > > #include <stdlib.h> > > #include "mat.h" > > > I don't see > #include "engine.h" > > I'm not sure, but it might be needed for some of your code.
engine.h would work since it includes matrix.h as a byproduct, but since I don't see any engine related functions in the code, what *will* be needed is matrix.h. You can get that by including engine.h or directly as:
#include "matrix.h"
The matrix.h file is needed in order to do all the mxArray manipulation.
James Tursa
|
|
|
|