substiton of a variable in a equation

2 ビュー (過去 30 日間)
Siva Prasad
Siva Prasad 2020 年 11 月 8 日
コメント済み: Siva Prasad 2020 年 11 月 8 日
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

採用された回答

madhan ravi
madhan ravi 2020 年 11 月 8 日
 subs(equation, x, x1)
  1 件のコメント
Siva Prasad
Siva Prasad 2020 年 11 月 8 日
thanks its working

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by