Where do I find the source code for matlab's mat.h header file function macros?

I am trying to write a c program that will read variables from .mat files, and need to use a few programs from matlab's mat.h file to do so. I have included both of these files in my c program, but my computer cannot find the definitions of certain functions like matClose and matDeleteVariable. The computer has no other visible error in drawing from the mat.h file (it can define a variable of the MATFile, for example). I can see the functions prototypes in the mat.h header file, but am perplexed as to why the function definitions would not be accessible.

Answers (1)

You might want to read the section on Compiling and Linking MAT-File Programs to make sure that you're building your code with the right options/settings.

Asked:

on 4 Sep 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!