External Interfaces Previous page   Next Page

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 figure is labeled position vs. time. The x axis is labeled time (seconds). The y axis is labeled position (meters).

The program continues with

Entering 1 at the prompt continues the program execution.

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


Previous page  Examples of Calling Engine Functions Attaching to an Existing MATLAB Session Next page

© 1994-2005 The MathWorks, Inc.