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

6 次查看(过去 30 天)
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.

回答(1 个)

Kaustubha Govind
Kaustubha Govind 2013-9-4
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.

类别

Help CenterFile Exchange 中查找有关 Workspace Variables and MAT Files 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by