User`s guide

B Data Conversion
B-10
Table B-3: COM VARIANT to MATLAB Conversion Rules
VARIANT Type MATLAB Data
Type (scalar or
array data)
Comments
VT_EMPTY
N/A Empty array created.
VT_I1 int8
VT_UI1 uint8
VT_I2 int16
VT_UI2 uint16
VT_I4 int32
VT_UI4 uint32
VT_R4 single
VT_R8 double
VT_CY double
VT_BSTR char
A VARIANT of type VT_BSTR converts to a 1-by-L
MATLAB
char array, where L = the length of the
string to be converted. A
VARIANT of type
VT_BSTR|VT_ARRAY converts to a MATLAB cell
array of 1-by-L
char arrays.
VT_ERROR int32