Skip to content
Snippets Groups Projects
get.m 219 B
function data = get(hash,key)
%GET Get data from the hashtable
%   data = get(hash,key)
%
% $Id$

index = find(strcmp(hash.keys, key));
if isempty(index)
    data = {};
else
    data = hash.data{index};
end