User`s guide

B Data Conversion
B-8
uint8
A real 1-by-1 uint8
matrix converts to a
VARIANT of type VT_UI1.
A complex 1-by-1
uint8
matrix converts to a
VARIANT of type
VT_DISPATCH.
A real
multidimensional
uint8 matrix converts
to a
VARIANT of type
VT_UI1|VT_ARRAY.A
complex
multidimensional
uint8 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.)
int16
A real 1-by-1 int16
matrix converts to a
VARIANT of type VT_I2. A
complex 1-by-1
int16
matrix converts to a
VARIANT of type
VT_DISPATCH.
A real
multidimensional
int16 matrix converts
to a
VARIANT of type
VT_I2|VT_ARRAY. A
complex
multidimensional
int16 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.)
uint16
A real 1-by-1 uint16
matrix converts to a
VARIANT of type VT_UI2.
A complex 1-by-1
uint16
matrix converts to a
VARIANT of type
VT_DISPATCH.
A real
multidimensional
uint16 matrix
converts to a
VARIANT
of type
VT_UI2|VT_ARRAY. A
complex
multidimensional
uint16 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.)
Table B-2: MATLAB to COM VARIANT Conversion Rules (Continued)
MATLAB Data Type VARIANT type for Scalar
Data
VARIANT type for
Array Data
Comments