Matcom is a tool that mathtools the company to convert m files to the same functional C + + code. Compared with the compiler compiler MATLAB, it is simpler and more convenient to transform the code with matcom. This article will combine the author programming experience, take VC6.0 and matcom as an example, detailed introduction how to use matcom to carry on the joint programming of VC and MATLAB.
matcom install VC6.0 before installing matcom. The Select Compiler dialog box appears during the installation process and select Yes (Figure I). Choose whether or not to install MATLAB, choose "No". The other options take the default setting. Matcom can be run independently of MATLAB, but need external C + + compiler, specify the location of MATLAB in order to allow some of the system functions needed in the compilation file to find the path used.
Figure I
After the installation is complete, start the interface Mideva (figure II). The Mideva integrated development environment includes a command line window, a variable list window, a command List window, and a Compile link information window, with detailed help documentation.
Figure II
The matcom command Input method is the same as MATLAB. If you are installing the Chinese version of the operating system, add a space before the command. (figure III).
Figure Three