Quantcast

Documentation Center

  • Trial Software
  • Product Updates

MLOpen

Start MATLAB

Syntax

MLOpen()
MLOpen
out = MLOpen()

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.

out = MLOpen() lets you catch errors when executing MLOpen in a VBA macro. If MLOpen fails, then out is a string containing error code. Otherwise, out is 0.

Output Arguments

out

0 if the command succeeded. Otherwise, a string containing error code.

Examples

expand all

Start a MATLAB Session

Start a MATLAB session from a worksheet:

MLOpen()

More About

expand all

Tips

  • If a MATLAB process has already started, subsequent calls to MLOpen do nothing.

  • To start a MATLAB session and initialize the Spreadsheet Link™ EX software, use matlabinit rather than MLOpen.

See Also

|

Was this topic helpful?