Substitution on symbolic function

1 回表示 (過去 30 日間)
Fahmy Shandy
Fahmy Shandy 2019 年 12 月 7 日
コメント済み: Fahmy Shandy 2019 年 12 月 7 日
I have this program
syms t
x0=input('x0= ');
x1=input('x1= ');
x2=input('x2= ');
y=input('input your function of variable t= ');
fx0=subs(y,t,x0)
fx1=subs(y,t,x1)
fx2=subs(y,t,x2)
But it didn't work. How to use subs in symbolic function. Thanks

採用された回答

David Hill
David Hill 2019 年 12 月 7 日
syms t
x0=input('x0= ');
x1=input('x1= ');
x2=input('x2= ');
y=input('input your function of variable t= ');
t=x0;
fx0=subs(y)
t=x1;
fx1=subs(y)
t=x2;
fx2=subs(y)
  1 件のコメント
Fahmy Shandy
Fahmy Shandy 2019 年 12 月 7 日
Ok. Thanks for the answer.

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

その他の回答 (0 件)

カテゴリ

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

タグ

製品


リリース

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by