symFunType
Determine functional type of symbolic object
Syntax
Description
returns the functional type of a symbolic object.s
= symFunType(symObj
)
If
symObj
is a symbolic function or a symbolic expression, thensymFunType
returns the topmost function name or operator ofsymObj
. For example,syms x; symFunType(2*sin(x))
returns"times"
.If
symObj
is not a symbolic function or a symbolic expression, thensymFunType
returns the same output assymType
. For example,symFunType(sym('2'))
returns"integer"
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2019a