Home > marsbar > @marsy > sumfunc.m

sumfunc

PURPOSE ^

method to get or set sumfunc

SYNOPSIS ^

function o = sumfunc(o, sumfunc)

DESCRIPTION ^

 method to get or set sumfunc

 $Id$

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function o = sumfunc(o, sumfunc)
0002 % method to get or set sumfunc
0003 %
0004 % $Id$
0005 
0006 if nargin < 2
0007   % get
0008   st = y_struct(o);
0009   if isfield(st, 'sumfunc')
0010     o = st.sumfunc;
0011   else
0012     o = '';
0013   end
0014 else
0015   % set
0016   o.y_struct.sumfunc = sumfunc;
0017 end

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