<< keyMatch Dictionaries lookup >>

keys


Keys of dictionary.


Syntax


k = keys(d)
k = keys(d, 'cell')

Input argument


d

scalar: dictionary object.

Output argument


k

keys.

Description


k = keys(d) retrieves an array containing the keys of the specified dictionary, d.

k = keys(d, 'cell') optionally returns the keys as a cell array.

Example


names = ["Biil" "John" "Yann"];
wheels = [1 2 3];
d = dictionary(wheels, names)
k = keys(d)
k = keys(d, 'cell')

See also


dictionary, values.

History


Version Description
1.5.0 initial version

Author


Allan CORNET

<< keyMatch Dictionaries lookup >>