How to solve differential equations which has more time dependent arguments ?

1 回表示 (過去 30 日間)
pritesh patel
pritesh patel 2021 年 5 月 28 日
編集済み: Torsten 2021 年 5 月 29 日
I have equation gdot=-k*g+xdot, where xdot=-k*x+sin(t). how can I solve gdot using ode45 ?
  7 件のコメント
J. Alex Lee
J. Alex Lee 2021 年 5 月 29 日
haha yes exactly...but now the answer is given away :)
and g should likely be Y(2) as far as we know from pritesh's nomenclature
Torsten
Torsten 2021 年 5 月 29 日
Yes, you are right with the g. I always associate it with the gravity constant ...

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by