method returns 1 if object contains valid data $Id$
0001 function tf = is_valid(o) 0002 % method returns 1 if object contains valid data 0003 % 0004 % $Id$ 0005 0006 st = y_struct(o); 0007 tf = isfield(st, 'Y') | isfield(st, 'regions');