User`s guide

Data Conversion Rules
B-7
double
A real 1-by-1 double
matrix converts to a
VARIANT of type VT_R8. A
complex 1-by-1 double
matrix converts to a
VARIANT of type
VT_DISPATCH.
A real
multidimensional
double matrix
converts to a
VARIANT
of type
VT_R8|VT_ARRAY. A
complex
multidimensional
double 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.)
single
A real 1-by-1 single
matrix converts to a
VARIANT of type VT_R4. A
complex 1-by-1 single
matrix converts to a
VARIANT of type
VT_DISPATCH.
A real
multidimensional
single matrix converts
to a
VARIANT of type
VT_R4|VT_ARRAY. A
complex
multidimensional
single 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.)
int8
A real 1-by-1 int8 matrix
converts to a
VARIANT of
type
VT_I1. A complex
1-by-1
int8 matrix
converts to a
VARIANT of
type
VT_DISPATCH.
A real
multidimensional
int8 matrix converts
to a
VARIANT of type
V
T_I1|VT_ARRAY. A
complex
multidimensional
int8 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