FEATool  v1.7
Finite Element Analysis Toolbox
 All Files Functions Pages
symvarbe.m File Reference


SYMVARBE Determine the symbolic variables in an expression.

[ VARS, I_START, I_END ] = SYMVARBE( S ) searches the string S for identifiers other than pi, inf, nan, eps and common functions. The variables are returned as a cell array of strings with start and end index given in I_START and I_END respectively. If no such variable exists, the empty cell array {} is returned.

   symvarbe( <tt>cos(pi*x - beta1)</tt> )  returns  {<tt>x</tt> <tt>beta1</tt>} [8 12] [8 16]