MATLAB: Sym and syms

symsyms

what is the use of sym and syms and what are their differences?

Best Answer

syms is a shortcut to the function sym, it makes it easier for the user to create symbolic variables.
Example:
x=sym('x');
y=sym('y');
Using the shortcut syms you do the same thing just with the code:
syms x y
Related Question