Solving differential equations with Simulink
3 次查看(过去 30 天)
显示 更早的评论
Can someone explain what differential equation is being solved below? The input is a ramp input.
0 个评论
采纳的回答
Birdman
2021-1-27
If you consider the ramp imput as a function
r(t)=t;
then the equation becomes
If you code this in MATLAB:
syms x(t)
eq=t-4*x==diff(x,2);
X(t)=dsolve(eq);%without giving initial conditions
and you will obtain
X(t) =
t/4+C1*cos(2*t)-C2*sin(2*t)
更多回答(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!