%% Create Map
% Create a Map object that contains rainfall data for several months. The map contains the four values in valueSet, and the keys are the four month names in keySet.

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

%
% Display the rainfall for March. You can retrieve the value for March by using 'Mar' as the key.

M('Mar')

%
% Display the number of values in the map. You can access the Count property using dot notation.

M.Count

% Copyright 2012 The MathWorks, Inc.