The MATLAB mapping for a Slice sequence varies depending depends on the element type of the sequence:
Element Type | Mapped Sequence Type | ||||
---|---|---|---|---|---|
bool | Numeric array of logical | ||||
Numeric | Numeric array of the corresponding basic type | ||||
string | Cell array of | ||||
struct | Cell array of instances | ||||
enum | Cell array of enumerators | ||||
enum , struct , basic type other than string | sequence | Cell array of vector1 of | the mapped element type | ||
all other types: class , dictionary | Cell array of the mapped element type | , proxy , sequence , string | 1-by-n cell | class | Cell array of the mapped element type |
Sequences of boolean and numeric types are mapped to numeric arrays for the sake of efficiency. Sequences of other types are mapped to cell arrays containing instances of the mapped element type.
Info |
---|
For sequences of user-defined types, the mapping generates a class with the same name as the sequence. This class contains only marshaling code and therefore we do not describe it here. |
See Also
Anchor | ||||
---|---|---|---|---|
|
1 These vectors are 1-by-n arrays, where n is the size of the sequence.