3.5. Using the Matlab Engine Method

Method III. Use the Matlab Engine method, a method equivalent to an ActiveX method.

The Matlab Engine method uses the Matlab Engine library to communicate with Matlab functions.

3.5.1. Communication with Matlab

On UNIX, the engine library communicates with the Matlab engine using pipes, and, if needed, rsh for remote execution. On Microsoft Windows, the engine library communicates with Matlab using ActiveX. ActiveX and DDE Support documentation contains a detailed description of ActiveX.

By using the Matlab Engine library method, the interface between VC++ and Matlab is relatively easier. Just like the ActiveX control, after calling into the Matlab environment to execute some functionalities in Matlab, VC++ ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.