Return keys of Map object
Map
keySet = keys(M)
example
keySet = keys(M) returns a cell array containing all the keys in the input Map object.
M
collapse all
Create a Map object.
months = {'Jan','Feb','Mar','Apr'}; rainfall = [327.2 368.2 197.6 178.4]; M = containers.Map(months,rainfall)
M = Map with properties: Count: 4 KeyType: char ValueType: double
Return a cell array containing its keys.
keySet = 1x4 cell {'Apr'} {'Feb'} {'Jan'} {'Mar'}
Input Map object.
containers.Map | isKey | remove | values
containers.Map
isKey
remove
values
You have a modified version of this example. Do you want to open this example with your edits?