Start MATLAB engine session
#include "engine.h" Engine *engOpen(const char *startcmd);
#include "engine.h" mwPointer engOpen(startcmd) character*(*) startcmd
String to start the MATLAB® process.
On Windows® systems, the
startcmd string must be
On UNIX® systems:
NULL or the empty string,
engOpen starts a MATLAB process on the current host using the command
startcmd is a
engOpen starts a
MATLAB process on the designated host by embedding the specified
hostname string into the larger string:
"rsh hostname \"/bin/csh -c 'setenv DISPLAY\ hostname:0; matlab'\""
startcmd is any other string (has white space in it, or
nonalphanumeric characters), MATLAB executes the string literally.
Pointer to an engine handle, or
NULL if the open fails.
engOpen starts a MATLAB process for using MATLAB as a computational engine.
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 see Register MATLAB as a COM Server.
On UNIX systems,
Creates two pipes.
Forks a new process. Sets up the pipes to pass
from MATLAB (parent) software to two file descriptors in the engine
Executes a command to run MATLAB software (
rsh for remote execution).
See these examples in