User`s manual

4 Calling MATLAB from C and Fortran Programs
4-4
The MATLAB engine also uses the mx prefixed API routines discussed in
Chapter 2, “Creating C Language MEX-Files” and Chapter 3, “Creating
Fortran MEX-Files.”
Communicating 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. Chapter 7,
ActiveX and DDE Support” contains a detailed description of ActiveX.
engEvalString
Execute a MATLAB command
engOutputBuffer
Create a buffer to store MATLAB text output
engOpenSingleUse
Start a MATLAB engine session for single,
nonshared use
engGetVisible
Determine visibility of MATLAB engine session
engSetVisible
Show or hide MATLAB engine session
Table 4-2: Fortran Engine Routines
Function Purpose
engOpen
Start up MATLAB engine
engClose
Shut down MATLAB engine
engGetMatrix
Get a MATLAB array from the MATLAB engine
engPutMatrix
Send a MATLAB array to the MATLAB engine
engEvalString
Execute a MATLAB command
engOutputBuffer
Create a buffer to store MATLAB text output
Table 4-1: C Engine Routines (Continued)
Function Purpose