E = entries(d)
E = entries(d, format)
| Parameter | Description |
|---|---|
| d | scalar: dictionary object. |
| format | format: string scalar or character vector: 'table' (default), 'struct' or 'cell'. |
| Parameter | Description |
|---|---|
| E | table, struct or cell. |
E = entries(d) retrieves a table containing the key-value pairs from the given dictionary,d.
E = entries(d) is equivalent to E = entries(d, 'table'): the default output format is a table.
E = entries(d, format) specifies the output format as a table, a structure or a cell. 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.
names = ["Biil" "John" "Yann"];
wheels = [1 2 3];
d = dictionary(wheels, names)
E = entries(d, 'struct')
E = entries(d, 'cell')
| Version | Description |
|---|---|
| 1.5.0 | initial version |