Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

MLOpen

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

collapse all

Start a MATLAB session from a worksheet:

MLOpen()

More About

collapse 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™ software, use matlabinit rather than MLOpen.

See Also

|

Introduced before R2006a

Was this topic helpful?