I\'m trying to wrap existing C++ code into a MATLAB callable function. I\'m using Visual Studio 2013 to generate the MEX file . The MEX file is created properly, I can call
You could also run a MATLAB session as usual, and then attach Visual Studio to the running process. This is explained in more details in the documentation. Here is a quick summary:
matlab.exe
process.