MATLAB: Substiton of a variable in a equation

substitutionsymbolicSymbolic Math Toolbox

syms x
y=input("Enter the equation in terms of x:")
x1=3
now how do i substitute x1 in the equation to get y
lets say equation is => -0.6*x^2+2.4*x+5.5

Best Answer

 subs(equation, x, x1)