3.3. Call a Standard-Alone Application

Method I. Use Matlab Compiler 2.1 to create a standard-alone application (.exe file) based on an M-Function, and then use VC++ to call this application from within the VC++ programming environment.

Any Matlab M-function or combination of M-functions can be compiled using the Matlab Compiler to create a standard-alone application (executable file), and this executable file can be executed independently without installing the Matlab library. Moreover, the Matlab Compiler can create the C/C++ source code and associated head files. This means that the M-function in the Matlab environment can be translated into C/C++ functions by using the Matlab Compiler and can be called in the VC++ environment in most cases ...

Get Applications Interface Programming Using Multiple Languages: A Windows® Programmer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.