User`s guide
Language and Programming
1-5
Language and Programming
repelem Function: Repeat copies of array elements to create a larger
array
The repelem function copies elements of an array into a new array according to a
specified repetition scheme.
sort Function: Now preserves shape of cell array of string inputs
The sort function now preserves the shape of input cell arrays of strings and sorts each
column independently. This makes the behavior for sort with a cell array of strings
consistent with the behavior of sort with a numeric array.
Compatibility Considerations
Previously, sort flattened all cell array of string inputs into a vector output. This
behavior treated the input cell array as a tall vector of strings, and did not preserve the
size of the input. Any code that relies on the output size of sort on a cell array of strings
might need to be updated.
To continue using the previous behavior, use the colon operator, :, when calling sort on
a cell array, for example, sort(X(:)).
isenum Function: Determine if variable is enumeration
The isenum function tests the input argument to determine if it is an enumeration.
milliseconds Function: Convert duration to number of milliseconds
The milliseconds function converts duration values to double values in units of
milliseconds.
Publishing Markup: Include external file content
External file content can be added into MATLAB published code using the new
<include> markup. For information about this new markup, see “External File
Content”.