Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space IceMaster and version 3.7.1

The MATLAB mapping for a Slice sequence varies depending  depends on the element type of the sequence:

Cell array of
Element TypeMapped Sequence Type
boolNumeric array of logical
NumericNumeric array of the corresponding basic type
string

Cell array of char values

structCell array of instances
enumCell array of enumerators
enum, struct, basic type other than stringsequencevector1 of the mapped element type
all other types: class, dictionaryCell array of the mapped element type, proxy, sequence, string1-by-n cell classCell 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
vector
vector

1 These vectors are 1-by-n arrays, where n is the size of the sequence.