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.

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

Was this topic helpful?