Home > mpt > extras > auxiliary > mpt_defaultField.m

mpt_defaultField

PURPOSE ^

MPT_DEFAULTFIEL Sets default value of field of a structure

SYNOPSIS ^

function value = mpt_defaultField(structure, fieldname, defaultvalue)

DESCRIPTION ^

MPT_DEFAULTFIEL Sets default value of field of a structure

 v = mpt_defaultField(S, fname, default)
 ---------------------------------------------------------------------------
 DESCRIPTION
 ---------------------------------------------------------------------------
 If the structure S does contain a field "fname", this field will be returned.
 Otherwise the function will return the value specified as "default".

 ---------------------------------------------------------------------------
 INPUT
 ---------------------------------------------------------------------------

 ---------------------------------------------------------------------------
 OUTPUT                                                                                                    
 ---------------------------------------------------------------------------

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Thu 30-Mar-2006 10:26:47 by m2html © 2003