%% Find Keys in Map
% Create a Map object containing several key-value pairs.

months = {'Jan','Feb','Mar','Apr'};
rainfall = [327.2 368.2 197.6 178.4];
M = containers.Map(months,rainfall)

%
% Determine whether m has 'Feb' as a key.

TF = isKey(M,'Feb')

%
% Search for multiple keys.

keySet = {'Mar','Apr','May','Jun'};
TF = isKey(M,keySet)

% Copyright 2012 The MathWorks, Inc.