Calling MATLAB® Software from C and Fortran Programs


The MATLAB® engine library contains routines that allow you to call MATLAB software from your own programs, thereby employing MATLAB as a computation engine. Engine programs are C or Fortran programs that communicate with a separate MATLAB process via pipes, on UNIX®[1] systems, and through a Microsoft® Component Object Model (COM) interface, on Microsoft Windows® systems. MATLAB provides a library of functions that allows you to start and end the MATLAB process, send data to and from MATLAB, and send commands to be processed in MATLAB.

Using the MATLAB® Engine to Call MATLAB® Software from C and Fortran ProgramsWhat types of applications is the MATLAB® engine useful for, and what functions are available to use with it
Examples of Calling Engine FunctionsExample programs that call MATLAB® from C or Fortran, and that attach to an existing MATLAB® session
Compiling and Linking MATLAB® Engine ProgramsBuilding and running an engine application

[1] UNIX is a registered trademark of The Open Group in the United States and other countries.

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS