Substitution on symbolic function

1 vue (au cours des 30 derniers jours)
Fahmy Shandy
Fahmy Shandy le 7 Déc 2019
Commenté : Fahmy Shandy le 7 Déc 2019
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

Réponse acceptée

David Hill
David Hill le 7 Déc 2019
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 commentaire
Fahmy Shandy
Fahmy Shandy le 7 Déc 2019
Ok. Thanks for the answer.

Connectez-vous pour commenter.

Plus de réponses (0)

Tags

Produits


Version

R2014a

Community Treasure Hunt

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

Start Hunting!

Translated by