Need help with difference equation (continuous-time system)
2 次查看(过去 30 天)
显示 更早的评论
Hello, How to solve the equation in Matlab?
y''(t)+5*y'(t)+6y(t)= u(t)
y'(0)=y(0)=0
u(t) = 1(t) or u(t)= t*1(t)
I found the solution by hand through the transformation of Laplace, it came like this:
y(t)= 1/6 - exp(-2*t)/2 + exp (-3*t) for u(t)=1(t)
2 个评论
Titus Edelhofer
2012-11-2
编辑:Titus Edelhofer
2012-11-2
Since he found the solution by hand, I guess the numerical solution is searched for ...? BTW you want to solver a differential equation, not a difference equation ...
采纳的回答
更多回答(1 个)
Titus Edelhofer
2012-11-2
Hi,
you will need to convert your second order problem to a system of first order equations (by setting y1=y, y2=y'). Then use ode45 to solve the system.
Titus
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!