%% Length of Map
% Create a Map object.

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

%
% Return the number of key-value pairs that it contains.

L = length(M)

% Copyright 2012 The MathWorks, Inc.