Matlab and VC++ Programming
How to call C++ functions in Matlab? We may use mex to compile C++ codes. But when the C++ function is very complex, it may be difficult to use mex.
Here is a very simple way to call C++ functions in Matlab: call *.exe file in Matlab!!! Type
in matlab to see how to call exe files. See here for some discussion on it.
In order to transmit data between Matlab and C++ function, we may use an intermediate *.txt file. That is to put data on the hard disk first. The *.exe file is also able to return a single data to matlab.