User`s guide

B Data Conversion
MATLAB to COM VARIANT Conversion Rules (Continued)
MATLAB Data
Type
VARIANT Type for
Scalar Data
VARIANT Type for
Array Data Comments
uint8
Areal1-by-1uint8
matrix converts to
a
VARIANT of type
VT_UI1.Acomplex
1-by-1
uint8 matrix
converts to a
VARIANT
of type VT_DISPATCH.
Areal
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
C-25.)
int16
Areal1-by-1int16
matrix converts to a
VARIANT of type VT_I2.
A com plex 1-by-1
int16
matrix converts to
a
VARIANT of type
VT_DISPATCH.
Areal
multidimensional
int16 matrix converts
to a
VARIANT of type
VT_I2|VT_ARRAY.
Acomplex
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
C-25.)
uint16
Areal1-by-1uint16
matrix converts to
a
VARIANT of type
VT_UI2.Acomplex
1-by-1
uint16 matrix
converts to a
VARIANT
of type VT_DISPATCH.
Areal
multidimensional
uint16 matrix converts
to a
VARIANT of type
VT_UI2|VT_ARRAY.
Acomplex
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
C-25.)
B-8