engOpen (Fortran)
StartMATLABengine session
Fortran Syntax
#include "engine.h" mwPointer engOpen(startcmd) character*(*) startcmd
Description
engOpen
starts a MATLAB®process for using MATLAB as a computational engine.
WindowsPlatforms
engOpen
launches MATLAB without a desktop. The function opens a COM channel to MATLAB. The MATLAB software you registered during installation starts. If you did not register during installation, then seeRegister MATLAB as a COM Server.
UNIXPlatforms
On UNIX®systems,engOpen
:
Creates two pipes.
Forks a new process. Sets up the pipes to pass
stdin
andstdout
from MATLAB (parent) software to two file descriptors in the engine program (child).Executes a command to run MATLAB software (
rsh
for remote execution).
Input Arguments
Output Arguments
Examples
See these examples in
:matlabroot
/extern/examples/eng_mat
fengdemo.F
for a Fortran example.