Avinash Ravichandran
 
 

Home > helper > testStructContents.m

testStructContents


PURPOSE

Validates a structure for the required parameters

SYNOPSIS

function valid = testStructContents(inputStruct,fieldList)

 

DESCRIPTION

 Validates a structure for the required parameters  

 Checks if the given structure has the required set of fields 

 INPUTS
   inputStruct - Structure which needs to be validated
   fieldList   - List of fields that must be contained in the structure

 OUTPUTS
   valid       - Boolean value indicating if the structure is valid or not

 EXAMPLE
 

% Written by : Avinash Ravichandran
% $DATE      : 27-Aug-2011 01:31:43 $
% $REVISION  : 1.00 $

 

CROSS-REFERENCE INFORMATION

This function calls:

This function is called by: