Symbolic Math Toolbox
 Go to function:
  Search    Help Desk 
findsym ExamplesSee Also

Finds the variables in a symbolic expression or matrix.

Syntax

Description

findsym(S) returns all symbolic variables in S in alphabetical order, separated by commas. If S does not contain any variables, findsym returns an empty string.

findsym(S,n) returns the n variables alphabetically closest to x.

Note
A symbolic variable is an alphanumeric name, other than i or j, that begins with an alphabetic character.

Examples

syms a x y z t

findsym(sin(pi*t)) returns pi, t.

findsym(x+i*y-j*z) returns x, y, z.

findsym(a+y,1) returns y.

See Also

compose, diff, int, limit, taylor

[ Previous | Help Desk | Next ]