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!