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) Related SolutionsMATLAB: Does the SUBS function in the Symbolic Toolbox give an output of type DOUBLE This is a designed feature of the SUBS function. To ensure that your output remains a symbolic object, use the SYM function:syms A x yA = sym(1);class(A)A = sym(subs(A,x,y));class(A) MATLAB: Checking whether a symbolic expression is an equality or inequality http://www.mathworks.com/help/symbolic/mupad_ref/op.htmlchar(feval(symengine, 'op', eqn1, 1))The defined relationship operators are _equal, _unequal, _approx, _less, and _leequal . A>B is rewritten as _less(B,A) and A>=B is rewritten as _leequal(B,A) Related Question“Substitution function” by symbolic math toolboxHow to simplify unit fractionsProblem with using subs() for products of symbolic variablesIs the simplify function not simplifying
Best Answer