MATLAB: Check a variable is a symbolic or a double

sym

is there a function to check a variable is a symbolic or a double?

Best Answer

syms a
b=10
class(a)
class(b)