User`s guide

Data Conversion Rules
B-5
Table B-2: MATLAB to COM VARIANT Conversion Rules
MATLAB Data Type VARIANT type for Scalar
Data
VARIANT type for
Array Data
Comments
cell
A 1-by-1 cell array
converts to a single
VARIANT with a type
conforming to the
conversion rule for the
MATLAB data type of
the cell contents.
A multidimensional
cell array converts to a
VARIANT of type
VT_VARIANT|VT_ARRAY
with the type of each
array member
conforming to the
conversion rule for the
MATLAB data type of
the corresponding cell.
structure VT_DISPATCH VT_DISPATCH
A MATLAB struct
array is converted
to an
MWStruct
object. (SeeClass
MWStruct on
page D-16.) This
object is passed as a
VT_DISPATCH type.