User`s manual
Examples of Calling Engine Functions
4-11
Entering X = 17.5 continues the program execution.
X = 17.5
X =
17.5000
Retrieving X...
X is class double
Done!
Finally, the program frees memory, closes the MATLAB engine, and exits.
Calling MATLAB From a Fortran Application
This program, fengdemo.f, illustrates how to call the engine functions from a
stand-alone Fortran program.
C
C
C fengdemo.f
C
C This program illustrates how to call the MATLAB
C Engine functions from a Fortran program.
C
C Copyright (c) 1996-2000 by The MathWorks, Inc.
C
C===============================================================
C $Revision: 1.7 $
program main
C---------------------------------------------------------------
C (pointer) Replace integer by integer*8 on the DEC Alpha
C platform.
C
integer engOpen, engGetMatrix, mxCreateFull, mxGetPr
integer ep, T, D
C---------------------------------------------------------------
C