method returns 1 if object only contains summary data $Id$
0001 function tf = is_summary_only(o) 0002 % method returns 1 if object only contains summary data 0003 % 0004 % $Id$ 0005 0006 tf = 0; 0007 st = y_struct(o); 0008 if isfield(st, 'Y') 0009 if ~isfield(st, 'regions') 0010 tf = 1; 0011 else 0012 Y = region_data(o); 0013 Y = [Y{:}]; 0014 tf = size(Y, 2) == size(st.Y, 2); 0015 end 0016 end