关于sym的一个简单问题。
显示 更早的评论
syms a y t;
z0=diff(sym('y(t)'))+a*sym('y(t)');
z=laplace(z0);
F1=subs(z,'laplace(y(t),t,s)',sym('Y'));
F2=subs(F1,'y(0)',sym('1'));
Y=solve(F2,sym('Y'));
y=ilaplace(Y);
第二行 z0=diff(sym('y(t)'))+a*sym('y(t)');
其中的y(t)难道不是另一个新的符号变量吗。
工作空间中没有出现这个y(t)
第二点,为何每次都要用sym定义y(t)-------sym('y(t)')
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!