Substitution on symbolic function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Fahmy Shandy
am 7 Dez. 2019
Kommentiert: Fahmy Shandy
am 7 Dez. 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
0 Kommentare
Akzeptierte Antwort
David Hill
am 7 Dez. 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)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Assumptions finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!