Home > marsbar > @marsy > is_summary_only.m

is_summary_only

PURPOSE ^

method returns 1 if object only contains summary data

SYNOPSIS ^

function tf = is_summary_only(o)

DESCRIPTION ^

 method returns 1 if object only contains summary data
 
 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

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