

    \filetitle{dbfun}{Apply function to each database field}{dbase/dbfun}

	\paragraph{Syntax}
 
 \begin{verbatim}
 [D,FLAG,INVALID] = dbfun(FUNC,D1,...)
 [D,FLAG,INVALID] = dbfun(FUNC,D1,D2,...)
 \end{verbatim}
 \paragraph{Input arguments}
 
 \begin{itemize}
 \item
   \texttt{FUNC} {[} function\_handle \textbar{} char {]} - Function that
   will be applied to each field.
 \item
   \texttt{D1} {[} struct {]} - First input database.
 \item
   \texttt{D2} {[} struct {]} - Second input database (when \texttt{fun}
   accepts two input arguments).
 \end{itemize}
 \paragraph{Output arguments}
 
 \begin{itemize}
 \item
   \texttt{D} {[} struct {]} - Output database whose fields will be
   created by applying \texttt{fun} to each field of the input database
   or databases.
 \item
   \texttt{FLAG} {[} \texttt{true} \textbar{} \texttt{false} {]} - True
   if no error occurs when evaluating the function.
 \item
   \texttt{INVALID} {[} cellstr {]} - List of fields on which the
   function fails.
 \end{itemize}
 \paragraph{Options}
 
 \begin{itemize}
 \item
   \texttt{'cascade='} {[} \emph{\texttt{true}} \textbar{} \texttt{false}
   {]} - Cascade through subdatabases applying the function \texttt{fun}
   to their fields, too.
 \item
   \texttt{'classFilter='} {[} cell \textbar{} cellstr \textbar{}
   \emph{\texttt{Inf}} {]} - Apply \texttt{fun} only to the fields of
   selected classes.
 \item
   \texttt{'fresh='} {[} \texttt{true} \textbar{} \emph{\texttt{false}}
   {]} - Keep uprocessed fields in the output database.
 \end{itemize}
 \paragraph{Description}
 
 \paragraph{Example}


