how to run a c++ file in matlab using mex?
13 次查看(过去 30 天)
显示 更早的评论
compile cpp file from matlab. Is it : mex hello.cpp
0 个评论
回答(1 个)
James Tursa
2016-2-26
You need to have the gateway function mexFunction in your source code:
If you have that set up properly, and the file is in the current directory, then yes all you do is enter this at the command prompt:
mex hello.cpp
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!