| MATLAB Function Reference | Search  Help Desk |
| symvar | Examples See Also |
Determine symbolic variables in an expression
Syntax
symvar('str')
Description
symvar('str')
searches the string str for identifiers other than i, j, pi, inf, nan, eps, and common functions. The variables are returned as a cell array of strings. If no such variable exists, symvar returns the empty cell array {}.
Example
symvar('cos(pi*x - beta1)') returns {'beta1','x'}.
symvar('pi eps nan') returns {}.
See Also
findstr