User`s guide
Data Conversion Rules
MATLAB to COM VARIANT Conversion Rules (Continued)
MATLAB Data
Type
VARIANT Type for
Scalar Data
VARIANT Type for
Array Data Comments
double
A real 1-by-1 double
matrix converts to
a
VARIANT of type
VT_R8.Acomplex
1-by-1 double matrix
converts to a
VARIANT
of type VT_DISPATCH.
Areal
multidimensional
double matrix converts
to a
VARIANT of type
VT_R8|VT_ARRAY.
Acomplex
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
C-25.)
single
A real 1-by-1 single
matrix converts to a
VARIANT of type VT_R4.
A c om p le x 1-by-1 single
matrix converts to
a
VARIANT of type
VT_DISPATCH.
Areal
multidimensional
single matrix converts
to a
VARIANT of type
VT_R4|VT_ARRAY.
Acomplex
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
C-25.)
int8
Areal1-by-1int8
matrix converts to a
VARIANT of type VT_I1.
A complex 1-by-1
int8
matrix converts to
a
VARIANT of type
VT_DISPATCH.
Areal
multidimensional
int8
matrix converts to
a
VARIANT of type
V
T_I1|VT_ARRAY.
Acomplex
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
C-25.)
B-7