External Interfaces |
Attaching to an Existing MATLAB Session
You can make a MATLAB engine program attach to a MATLAB session that is already running by starting the MATLAB session with /Automation
in the command line. When you make a call to engOpen
, it will then connect to this existing session. You should only call engOpen
once, as any engOpen
calls will now connect to this one MATLAB session.
The /Automation
option also causes the command window to be minimized. You must open it manually.
Note
For more information on the /Automation command line argument, see Additional Automation Server Information. For information about the Component Object Model interfaces used by MATLAB, see Introducing MATLAB COM Integration.
|
$MATLAB/extern/examples/eng_mat
, where $MATLAB
is the MATLAB root directory.
engwindemo.c
example.
engwindemo
program by typing at the MATLAB prompt
Note On the UNIX platform, you cannot make a MATLAB engine program use a MATLAB session that is already running. |
Calling MATLAB from a Fortran Application | Compiling and Linking Engine Programs |
© 1994-2005 The MathWorks, Inc.