%% Remove Key-Value Pair
% Create a Map object. Display its keys and values.

ids = [437 1089 2362];
names = {'Li, N.','Jones, R.','Sanchez, C.'};
M = containers.Map(ids,names)
keys(M)
values(M)

%
% Remove a key-value pair. Display the updated keys and values.

remove(M,2362);
keys(M)
values(M)

% Copyright 2012 The MathWorks, Inc.