MATLAB: ‘syms’ and ‘gcd’ not working in MATLAB 2018a

errorsymbolicvariable

By typing x = sym('x')
or
syms x gcd(x^3 – 3*x^2 + 3*x – 1, x^2 – 5*x + 4)
from the examples, MATLAB command window remains active without any result. Then, I have to force MATLAB to exit by using the cursor.

Best Answer

Your code works for me.
Note that I already did the update described in: "syms", "sym", and "mupad" functions cause MATLAB to freeze (link).
Related Question