User`s guide

Data Conversion Rules
B-13
Table B-4 shows the array formatting flags.
Table B-4: Array Formatting Flags
Flag Description
InputArrayFormat
Defines the array formatting rule used on input arrays. An input array
is a
VARIANT array, created by the client, sent as an input parameter to
a method call on a compiled COM object. Valid values for this flag are
mwArrayFormatAsIs, mwArrayFormatMatrix, and mwArrayFormatCell.
mwArrayFormatAsIs passes the array unchanged.
mwArrayFormatMatrix (default) formats all arrays as matrices. When
the input
VARIANT is of type VT_ARRAY|<type>, where <type> is any
numeric type, this flag has no effect. When the input
VARIANT is of type
VT_VARIANT|VT_ARRAY, VARIANTs in the array are examined. If they are
single-valued and homogeneous in type, a MATLAB matrix of the
appropriate type is produced instead of a cell array.
mwArrayFormatCell interprets all arrays as MATLAB cell arrays.
InputArrayIndFlag
Sets the input array indirection level used with the InputArrayFormat
flag (applicable only to nested arrays, i.e.,
VARIANT arrays of VARIANTs,
which themselves are arrays). The default value for this flag is zero,
which applies the
InputArrayFormat flag to the outermost array. When
this flag is greater than zero, e.g., equal to N, the formatting rule
attempts to apply itself to the Nth level of nesting.
OutputArrayFormat
Defines the array formatting rule used on output arrays. An output
array is a MATLAB array, created by the compiled COM object, sent as
an output parameter from a method call to the client. The values for
this flag,
mwArrayFormatAsIs, mwArrayFormatMatrix, and
mwArrayFormatCell, cause the same behavior as the corresponding
InputArrayFormat flag values.
OutputArrayIndFlag
(Applies to nested cell arrays only.) Output array indirection level used
with the
OutputArrayFormat flag. This flag works exactly like
InputArrayIndFlag.