how to run a c++ file in matlab using mex?

1 次查看(过去 30 天)
compile cpp file from matlab. Is it : mex hello.cpp

回答(1 个)

James Tursa
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

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by