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