Main Content

MLUseFullDesktop

Specify whether to use full MATLAB desktop or Command Window

Description

example

= MLUseFullDesktop(flag) sets the MATLAB® session to start with the full desktop or Command Window only. Use this syntax when working directly in a worksheet.

MLUseFullDesktop flag sets the MATLAB session to start with the full desktop or Command Window only. Use this syntax in a VBA macro.

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

Examples

collapse all

Set the MATLAB session to start with the command window only:

MLUseFullDesktop("no")

Input Arguments

collapse all

Either "yes" or "no".

Specify "yes" to start full MATLAB desktop. Specify "no" to start the Command Window only.

Output Arguments

collapse all

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

Tips

  • 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 in R2006b