Home > brede > brede_struct_field2num.m

brede_struct_field2num

PURPOSE ^

brede_struct_field2num - Convert field to number

SYNOPSIS ^

function n = brede_struct_field2num(S, f)

DESCRIPTION ^

 brede_struct_field2num - Convert field to number

       n = brede_struct_field2num(f)
       s = brede_struct_field2str(S, f)

       Input:  S   Structure
               f   Field 
 
       Output: n   Number

       Convert a field that might be a cell string, string or number
       to a number. If the field contain more than one number NaN is
       returned. 

       Example:
         brede_struct_field2num('2')

       See also BREDE, BREDE_STRUCT, BREDE_STRUCT_FIELD2CELLSTR,
                BREDE_STRUCT_FIELD2NUMS.

 $Id: brede_struct_field2num.m,v 1.5 2009/08/17 13:05:52 fn Exp $

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 27-Nov-2009 18:11:22 by m2html © 2005