[D,Flag,ErrList,WarnList] = dbfun(Func,D1,...)
[D,Flag,ErrList,WarnList] = dbfun(Func,D1,D2,...)
Func [ function_handle | char ] - Function that will be applied to each field.
D1 [ struct ] - Input database.
D2, D3, ... [ struct ] - Further input databases when Func accepts two input arguments.
D [ struct ] - Output database whose fields will be created by applying Func to each field of the input database or databases.
Flag [ true | false ] - True if no error occurs when evaluating the function.
ErrList [ cellstr ] - List of fields on which the function has thrown an error.
WarnList [ cellstr ] - List of fields on which the function has thrown a warning.
'cascade=' [ true | false ] - Cascade through subdatabases applying the function Func to their fields, too.
'classList=' [ cell | cellstr | Inf ] - Apply Func only to the fields of specified classes.
'fresh=' [ true | false ] - Keep uprocessed fields in the output database.
'nameList=' [ cell | cellstr | Inf ] - Apply Func only to the specified field names; can be still combined with the option 'classList='.
'onError=' [ 'keep' | 'NaN' | 'remove' ]