substiton of a variable in a equation

2 views (last 30 days)
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

Accepted Answer

madhan ravi
madhan ravi on 8 Nov 2020
 subs(equation, x, x1)

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!