FUNCTION REFERENCE

keys

Keys of a containers.Map, in sorted order.

Keys of a containers.Map, in sorted order.

Syntax

k = keys(m)

Returns a 1-by-Count cell array. Char keys sort by character code, so uppercase comes before lowercase.

Example

m = containers.Map({'b','a'}, {1, 2}); keys(m)   % {'a', 'b'}

Differences from MATLAB: none known.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.