Home > marsbar > @marmoire > item_exists.m

item_exists

PURPOSE ^

returns true if there is an item of this name

SYNOPSIS ^

function tf = item_exists(o, item)

DESCRIPTION ^

 returns true if there is an item of this name

 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Wed 11-May-2022 16:26:09 by m2html © 2003-2019