ME 340: Example, Solving ODEs using MATLAB's laplace command
HTML-код
- Опубликовано: 19 окт 2015
- Want to see more mechanical engineering instructional videos? Visit the Cal Poly Pomona Mechanical Engineering Department's video library, ME Online (www.cpp.edu/meonline).
on 2019b
syms x(t) t s X
F=diff(diff(x,t),t)+7*diff(x,t)+10*x-20;
LF=laplace(F,t,s);
LF=subs(LF,laplace(x(t), t, s),X);
LF=subs(LF,x(0),5);
LF=subs(LF,subs(diff(x(t), t), t, 0),3);
ys=solve(LF,X);
solution=ilaplace(ys,s,t)
ezplot(solution,[0 10])
This code doesn't work either on 2019a
working on 2021b
Thankyou so much.
This was really helpful.
Our pleasure.
nice sir why can't you explain the code for pde
this method does not work on 2020a
neither 2019b
neither in 2018a
It is not working on 2020a
What can't it work?
This is outdated code and no longer works, its ancient.
Doesn't work anymore
try
F = subs(F,subs(x(t),0),5);
F = subs(F,subs(diff(x(t), t), t, 0),3);