keys
Keys of dictionary.
📝Syntax
k = keys(d)
k = keys(d, 'cell')
📥Input Arguments
Parameter Description
d scalar: dictionary object.
📤Output Arguments
Parameter Description
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.

💡Examples
names = ["Biil" "John" "Yann"];
wheels = [1 2 3];
d = dictionary(wheels, names)
k = keys(d)
k = keys(d, 'cell')
🔗See Also
dictionaryvalues
🕔Version History
Version Description
1.5.0 initial version
Edit this page on GitHub