


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


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