MATLAB Mapping for Basic Types

On this page:

Mapping of Slice Built-In Types to MATLAB Types

The Slice built-in types are mapped to MATLAB types as shown in this table:

Slice

MATLAB

bool

logical

byte

uint8

short

int16

int

int32

long

int64

float

single

double

double

string

character vector (1-by-n array of char),
empty 0-by-0 character array for empty strings

String Mapping in MATLAB

String values returned as the result of a Slice operation, including return values, out parameters, and data members, are converted from UTF-8 (Ice's on-the-wire encoding) to MATLAB's native UTF-16 encoding.

The MATLAB mapping accepts empty arrays in addition to character vectors as string input values for remote Slice operations; each occurrence of an empty array is marshaled as an empty string. Ice assumes that all character vectors contain valid UTF-16 encoded strings and converts them to UTF-8 prior to marshaling.

The MATLAB mapping currently does not allow you to map Slice strings to the MATLAB string type added in MATLAB R2016b.

See Also