entries
Key-value pairs of dictionary.
📝Syntax
E = entries(d)
E = entries(d, format)
📥Input Arguments
Parameter Description
d scalar: dictionary object.
format format: string scalar or character vector: 'cell', 'struct', 'table' (not yet implemented) .
📤Output Arguments
Parameter Description
E table, struct or cell.
📄Description

E = entries(d) retrieves a table containing the key-value pairs from the given dictionary, d.

E = entries(d) currently not implemented.

E = entries(d, format) specifies the output format as either a table or a structure. For instance, entries(d, "struct") returns a structure containing the key-value pairs of d. This option is useful for data types that are not compatible with tables.

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