Using ODE to solve pendulum damping differential equation
古いコメントを表示

The required "code to call your function" is [x,Y] = ode_integration().
How do I implement this given differential equation into an ODE function? Which variables are 'x' and 'Y' supposed to be?
5 件のコメント
James Tursa
2020 年 4 月 24 日
What have you done so far? What specific problems are you having with your code?
Aaron Zambiasi
2020 年 4 月 24 日
James Tursa
2020 年 4 月 24 日
編集済み: James Tursa
2020 年 4 月 24 日
Can you use ode45( ) for this, or are you supposed to write your own integration function (e.g., Euler or RK4)? Have you looked at the documentation for how to set up a 2nd order problem? See the 2nd example here:
You need to ask your professor what x and Y are supposed to be. It could be the coordinates ot the pendulum mass, or it could be theta and thetadot. I can't tell from the problem wording.
Aaron Zambiasi
2020 年 4 月 24 日
Aaron Zambiasi
2020 年 4 月 24 日
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!