sym - Makers of MATLAB and Simulink - MATLAB & Simulink
https://de.mathworks.com/help/symbolic/sym.htmlTo create symbolic expressions, first create symbolic variables, and then use operations on them. For example, use syms x; x + 1 instead of sym ('x + 1'), exp (sym (pi)) instead of sym ('exp (pi)'), and syms f (var1,...varN) instead of f (var1,...varN) = sym ('f (var1,...varN)'). Syntax x = sym ('x') A = sym ('a', [n1 ... nM]) A = sym ('a',n)
Symbolic substitution - MATLAB subs
www.mathworks.com › help › symbolicView MATLAB Command. Substitute the default symbolic scalar variable in this expression with a. If you do not specify the scalar variable or expression to replace, subs uses symvar to find the default variable. For x + y, the default variable is x. syms x y a symvar (x + y,1) ans =. Therefore, subs replaces x with a.