关于sym的一个简单问题。
Show older comments
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)')
Accepted Answer
More Answers (0)
Categories
Find more on Conversion Between Symbolic and Numeric in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!