Help CenterHelp Center
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.
Introduced in R2008b
containers.Map | isKey | values | remove
containers.Map
isKey
values
remove
Tiene una versión modificada de este ejemplo. ¿Desea abrir este ejemplo con sus modificaciones?
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office