lookup
Description
value = lookup(
returns the value corresponding to d,key)key in dictionary,
d. If no entry corresponds to key then
lookup throws an error.
value = lookup(d,key) is equivalent to value =
d(key).
Examples
Input Arguments
Tips
A dictionary maps keys to values element-wise, allowing vectorized lookup and insert. Keys and values must each consist of elements of the same or compatible data type. To store nonscalar or heterogeneous values, use a cell array.