External Interfaces/API    

Calling MATLAB From a Fortran Application

This program, fengdemo.f, illustrates how to call the engine functions from a stand-alone Fortran program.

Executing this program launches MATLAB, sends it data, and plots the results.

The program continues with

Entering 1 at the prompt continues the program execution.

Finally, the program frees memory, closes the MATLAB engine, and exits.


  Examples of Calling Engine Functions Attaching to an Existing MATLAB Session