solve - unable to find explicit solution
2 次查看(过去 30 天)
显示 更早的评论
Hi, please help me out
Here is my code:
syms s t X(s) x(t) Xs(s);
ode = diff(x, t, 2) + 2*diff(x, t) + x == cosh(2*t);
L = laplace(ode,t,s);
eqn = subs(L,[laplace(x(t), t, s), subs(diff(x(t), t), t, 0), x(0)],[X, 4, 1])
solve(eqn);
xt=ilaplace(Xs);
I can't use fsolve or vpasolve since I need to take the ILT. By hand I can solve the equation, but matlab conks out for some reason. Any ideas on what to do?
0 个评论
回答(1 个)
Paul
2023-2-4
Hi Alexei,
Try to use isolate instead of solve to get an expression for X(s). Also, make sure to take the ilaplace of X(s), not Xs.
If you try and still have a problem, post back with updated code showing where the roadblock is.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Calculus 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!