Main Content

Conversion Between MATLAB Types and C# Types

This MATLAB® type....Is equivalent to this C# type....
uint8byte
int8sbyte
uint16ushort
int16short
uint32uint
int32int
uint64ulong
int64long
singlefloat
doubledouble
logicalbool
charSystem.String, char
cell (character arrays only)Array of System.String
cell (heterogeneous data types)Array of System.Object
structA .NET struct or class with public fields or public properties

Note

Multidimensional arrays of above C# types are supported. Jagged arrays are not supported.