isfield2

PURPOSE ^

More comprehensive version of isfield.

SYNOPSIS ^

function tf = isfield2( S, fs, isinit )

DESCRIPTION ^

 More comprehensive version of isfield.

 A more comprehensive test of what fields are present [and optionally initialized] in a
 stuct S.  fs is either a single field name or a cell array of field name.  The presence
 of all fields in fs are tested for in S, tf is true iif all fs are present.
 Additionally, if isinit==1, then tf is true iff every field fs of every element of S
 is nonempty (test done using isempty).

 INPUTS
   S       - struct array
   fs      - cell of string name or string
   isinit  - [optional] if true than additionally test if all fields are initialized

 OUTPUTS
   tf      - true or false, depending on results of above tests

 DATESTAMP
   29-Sep-2005  2:00pm

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 02-Oct-2005 19:35:28 by m2html © 2003