Using Ode45 to solve differential equation with time dependent variable

Solve the differential equation in 30 steps up to the 15th minute, D2x+0.9*Dx+0.1*x=3*sin(t),initial conditions are x(0)=10 and Dx(0)=5.

1 件のコメント

James Tursa
James Tursa 2021 年 5 月 25 日
What have you done so far? What specific problems are you having with your code?

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

回答 (1 件)

Aghamarsh Varanasi
Aghamarsh Varanasi 2021 年 5 月 28 日

0 投票

Hi,
You can refer to this MathWorks documentation link to solve a Seconf-Order Differential equation.
Hope this helps

カテゴリ

タグ

質問済み:

2021 年 5 月 25 日

回答済み:

2021 年 5 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by