substiton of a variable in a equation

2 visualizaciones (últimos 30 días)
Siva Prasad
Siva Prasad el 8 de Nov. de 2020
Comentada: Siva Prasad el 8 de Nov. de 2020
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

Respuesta aceptada

madhan ravi
madhan ravi el 8 de Nov. de 2020
 subs(equation, x, x1)

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by