function data = elements(hash) %ELEMENTS Get all hash table elements % data = values(hash) % % Get all hash table elements in a N-by-2 cell matrix where N is the number of % elements, first column contains the element keys, and second column contains % the element values. % $Id$ % Copyright (c) 2004 Matthew Krauski (mkrauski@uci.edu), CNLM, UC Irvine if isempty( hash ) data = {}; else data(:,1) = hash.keys; data(:,2) = hash.data; end