Skip to content

symvar

miscellaneous · scripts/miscellaneous/symvar.m

: vars = symvar (expr)

Return the variable names that appear in the expression string expr.

The result is a sorted column cellstr without duplicates. Numbers, text in quotes, field names after a dot, the constants i, j, pi, eps, inf and nan, and the names of existing functions that are used with call syntax are not variables.