returns true if there is an item of this name $Id$
0001 function tf = item_exists(o, item) 0002 % returns true if there is an item of this name 0003 % 0004 % $Id$ 0005 0006 tf = 0; 0007 if ~isempty(o.items) 0008 tf = ismember(item, fieldnames(o.items)); 0009 end