Substitution on symbolic function
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
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)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Assumptions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!