mapSymType
Apply function to symbolic subobjects of specific type
Description
applies the function X = mapSymType(symObj,type,func)func to the symbolic subobjects of type
type in the symbolic object symObj. The input
type must be a case-sensitive string scalar or character vector, and it
can include a logical expression.
If symObj contains several subexpressions of type
type, then mapSymType applies the function
func to the largest subexpression.
applies the function X = mapSymType(symObj,funType,vars,func)func to the unassigned symbolic functions that
depend on the variables vars in the symbolic object
symObj.
You can set the function type funType to
'symfunOf' or 'symfunDependingOn'. For example,
syms f(x); mapSymType(f,'symfunOf',x,@(u)cos(u)) returns
cos(f(x)).
Examples
Input Arguments
Version History
Introduced in R2019a
See Also
symFunType | isSymType | symType | sym | syms | findSymType | hasSymType | str2sym | symfun