User`s manual
4
Calling MATLAB from C
and Fortran Programs
Using the MATLAB Engine . . . . . . . . . . . . . 4-3
The Engine Library . . . . . . . . . . . . . . . . . . 4-3
GUI-Intensive Applications . . . . . . . . . . . . . . 4-5
Examples of Calling Engine Functions . . . . . . . . 4-6
Calling MATLAB From a C Application . . . . . . . . . 4-6
Calling MATLAB From a Fortran Application . . . . . . . 4-11
Attaching to an Existing MATLAB Session . . . . . . . . 4-15
Compiling and Linking Engine Programs . . . . . . . 4-17
Masking Floating-Point Exceptions . . . . . . . . . . . 4-17
Compiling and Linking on UNIX . . . . . . . . . . . . 4-18
Compiling and Linking on Windows . . . . . . . . . . . 4-19