Using ODE to solve pendulum damping differential equation
Show older comments

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 Comments
James Tursa
on 24 Apr 2020
What have you done so far? What specific problems are you having with your code?
Aaron Zambiasi
on 24 Apr 2020
James Tursa
on 24 Apr 2020
Edited: James Tursa
on 24 Apr 2020
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
on 24 Apr 2020
Aaron Zambiasi
on 24 Apr 2020
Answers (0)
Categories
Find more on Ordinary Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!