isKey
Determine if Map object contains key
Syntax
Description
Note
dictionary is recommended over
containers.Map because it accepts more data types as
keys and values and provides better performance. (since R2022b)
TF = isKey(
returns M,keySet)1 (true) if M
contains the specified key, and returns 0
(false) otherwise.
If keySet is an array that specifies multiple keys, then
TF is a logical array of the same size.
Examples
Input Arguments
Version History
Introduced in R2008b