Including mat.h and using in a C++ program
显示 更早的评论
Hello, to use variables from a MATLAB file calling it in a C/C++ program one has to add this inclusion at the beginning: #include "mat.h" ... But my compiler says: "mat.h, no such file or directory". It seems something like my MATLAB version hasn't got mat.h in its libraries... Is it possible? If yes, how can I get it? Otherwise, is the command right? Or is there something else I have to do? Thanks a lot! Elena
采纳的回答
更多回答(1 个)
Kaustubha Govind
2012-9-12
1 个投票
You need to use the Options File provided for compiling MAT-file applications. Please follow Compiling and Linking MAT-File Programs to find the exact compiler/linker commands to be used.
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Compiler 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!