Home > bml > utils > bml_getopt_single.m

bml_getopt_single

PURPOSE ^

BML_GETOPT_SINGLE gets a single value from a configuration structure [internal]

SYNOPSIS ^

function val = bml_getopt_single(varargin)

DESCRIPTION ^

 BML_GETOPT_SINGLE gets a single value from a configuration structure [internal]

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function val = bml_getopt_single(varargin)
0002 
0003 % BML_GETOPT_SINGLE gets a single value from a configuration structure [internal]
0004 
0005 val = bml_getopt(varargin{:});
0006 if iscell(val)
0007   if numel(val)==1
0008     val=convertStringsToChars(val{1});
0009   else
0010     error('Several elements in configuratoin where one was expected');
0011   end
0012 elseif isstring(val)
0013   val = convertStringsToChars(val);
0014 end

Generated on Tue 25-Sep-2018 10:08:19 by m2html © 2005