values

Values of dictionary.

Syntax

  • v = values(d)

  • v = values(d, 'cell')

Input argument

  • d - scalar: dictionary object.

Output argument

  • v - values.

Description

v = values(d) retrieves an array containing the values of the specified dictionary, d.

v = values(d, 'cell') optionally returns the values as a cell array.

Example

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

See also

dictionary, keys.

History

VersionDescription

1.5.0

initial version

Author

Allan CORNET

Last updated