MLOpen
Start MATLAB
Description
= MLOpen()
starts MATLAB® process. Use MLOpen
to restart the MATLAB session after you have stopped it with MLClose
in a given
Microsoft®
Excel® session. Use this syntax when working directly in a
worksheet.
MLOpen
starts MATLAB process. Use MLOpen
to restart the MATLAB session after you have stopped it with MLClose
in a given
Microsoft
Excel session. Use this syntax in a VBA macro.
lets you catch errors when
executing out
= MLOpen()MLOpen
in a VBA macro. If MLOpen
fails, then
out
is a string containing error code. Otherwise,
out
is 0
.
Examples
Output Arguments
Tips
If a MATLAB process has already started, subsequent calls to
MLOpen
do nothing.To start a MATLAB session and initialize the Spreadsheet Link™ software, use
matlabinit
rather thanMLOpen
.To work with VBA code in Excel with Spreadsheet Link, you must enable Spreadsheet Link as a reference in the Microsoft Visual Basic® Editor. For details, see Installation.
Version History
Introduced before R2006a