FUNCTION REFERENCE

values

Values of a containers.Map.

Values of a containers.Map.

Syntax

v = values(m)

Syntax

v = values(m, keySet)

Without keySet, the values in key order as a 1-by-Count cell. keySet is a cell of keys; the result has its shape. A missing key is an error.

Example

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

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.