Using ODE to solve pendulum damping differential equation
Afficher commentaires plus anciens

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 commentaires
James Tursa
le 24 Avr 2020
What have you done so far? What specific problems are you having with your code?
Aaron Zambiasi
le 24 Avr 2020
James Tursa
le 24 Avr 2020
Modifié(e) : James Tursa
le 24 Avr 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
le 24 Avr 2020
Aaron Zambiasi
le 24 Avr 2020
Réponses (0)
Catégories
En savoir plus sur Ordinary Differential Equations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!