User`s guide
Data Conversion Rules
B-9
int32
A 1-by-1 int32 matrix
converts to a
VARIANT of
type
VT_I4. A complex
1-by-1
int32 matrix
converts to a
VARIANT of
type
VT_DISPATCH.
A multidimensional
int32 matrix converts
to a
VARIANT of type
VT_I4|VT_ARRAY. A
complex
multidimensional
int32 matrix converts
to a
VARIANT of type
VT_DISPATCH.
Complex arrays are
passed to and from
compiled
M-functions using
the
MWComplex
class. See “Class
MWComplex” on
page D-23.)
uint32
A 1-by-1 uint32 matrix
converts to a
VARIANT of
type
VT_UI4. A complex
1-by-1
uint32 matrix
converts to a
VARIANT of
type
VT_DISPATCH.
A multidimensional
uint32 matrix
converts to a
VARIANT
of type
VT_UI4|VT_ARRAY. A
complex
multidimensional
uint32 matrix
converts to a
VARIANT
of type
VT_DISPATCH.
Complex arrays are
passed to and from
compiled
M-functions using
the
MWComplex
class. See “Class
MWComplex” on
page D-23.)
Function handle
VT_EMPTY VT_EMPTY
Not supported
Java class
VT_EMPTY VT_EMPTY
Not supported
User class
VT_EMPTY VT_EMPTY
Not supported
logical
VT_Bool VT_Bool|VT_ARRAY
Table B-2: MATLAB to COM VARIANT Conversion Rules (Continued)
MATLAB Data Type VARIANT type for Scalar
Data
VARIANT type for
Array Data
Comments