executing c++ code within matlab
8 次查看(过去 30 天)
显示 更早的评论
i have a matlab function which consists of a call to c++ code present in the same directory. whenever i execute the function i get an error message: undefined function or variable 'cimgnbmap'.
0 个评论
采纳的回答
Jan
2017-6-23
You cannot call a c++ file directly. At first you have to write a so called Mex-wrapper: this is the function "mexFunction", which is called as entry point. Then compile the file using the mex command.
1 个评论
Griffin Polglaze
2020-3-26
after successfully compiling the c++ code in matlab, are you able to call it? If not, how are you supposed to access it in matlab?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Call C++ from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!