Solving differential equations with Simulink

Can someone explain what differential equation is being solved below? The input is a ramp input.

 採用された回答

Birdman
Birdman 2021 年 1 月 27 日

0 投票

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)

1 件のコメント

Aleem Andrew
Aleem Andrew 2021 年 1 月 27 日
Thank you for answering.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

質問済み:

2021 年 1 月 27 日

コメント済み:

2021 年 1 月 27 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by