Documentation

MLUseCellArray

Toggle MLPutMatrix to use MATLAB cell arrays

Syntax

= MLUseCellArray(flag)
MLUseCellArray flag
out = MLUseCellArray(flag)

Description

= MLUseCellArray(flag) specifies whether MLPutMatrix must use cell arrays for transfer of data (for example, dates). When the Spreadsheet Link™ software is installed, the default is "no". If you change the value of MLUseCellArray to "yes", the change remains in effect the next time a Microsoft® Excel® session starts. Use this syntax when working directly in a worksheet.

MLUseCellArray flag specifies whether MLPutMatrix must use cell arrays for transfer of data. Use this syntax in a VBA macro.

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

Input Arguments

flag

Either "yes" or "no".

Specify "yes" to automatically uses cell arrays for transfer of data structures. Specify "no" to stop using cell arrays for transfer of data structures.

Default: "no"

Output Arguments

out

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

Examples

collapse all

Cancel automatic use of cell arrays for easy transfer of data:

MLUseCellArray("no")

See Also

Introduced in R2007a