Navigation

Operators and Keywords

Function List:

C++ API

: vars = symvar (str)

Identify the symbolic variable names in the string str.

Common constant names such as i, j, pi, Inf and Octave functions such as sin or plot are ignored.

Any names identified are returned in a cell array of strings. The array is empty if no variables were found.

Example:

symvar ("x^2 + y^2 == 4")
⇒ {
     [1,1] = x
     [2,1] = y
   }

Package: octave