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
int32
A1-by-1int32 matrix
converts to a
VARIANT of
type
VT_I4.Acomplex
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.
Acomplex
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
C-25.)
uint32
A1-by-1uint32 matrix
converts to a
VARIANT of
type
VT_UI4.Acomplex
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.
Acomplex
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
C-25.)
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
ThefollowingtableliststherulesforconversionfromCOMtoMATLAB.
B-9