Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Reading/Writing MAT files in C
Replies: 9   Last Post: May 11, 2012 4:03 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
James Tursa

Posts: 1,961
Registered: 8/5/09
Reading/Writing MAT files in C
Posted: May 11, 2012 12:35 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"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



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.