symvar
Find symbolic variables in symbolic input
Syntax
Description
symvar(
returns a vector of all symbolic
variables in s
)s
. The variables are in alphabetical order with uppercase
letters preceding lowercase letters.
Examples
Input Arguments
Tips
symvar
treats the constantspi
,i
, andj
as variables.If there are no symbolic variables in
s
,symvar
returns the empty vector.
Algorithms
When symvar
sorts the symbolic variables alphabetically, all
uppercase letters have precedence over lowercase: 0 1 ... 9 A B ... Z a b ... z.
Version History
Introduced in R2008b