Objectives: Convert a second order ODE into a system of two first order ODES. Setup and solve this system in Matlab. Consider the ODE for a pendulum. Assume g=-9.81 and L=0.6. d²0 d²² +0=0 do dt = y2 = velocity. 1. Write this ODE as a system of equations, where 2. For initial conditions at t=0, assume 0 = 0.1 and y₂ = 0. Assume a step size of 0.1 with values of time from 0 to 4 seconds. 3. Solve the system of ODEs using ode45() and plot the output for both velocity (v) and angle (theta). 4. If you have extra time consider how this approach might be expanded to not need the small angle approximation ....

Elements Of Electromagnetics
7th Edition
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Sadiku, Matthew N. O.
ChapterMA: Math Assessment
Section: Chapter Questions
Problem 1.1MA
icon
Related questions
Question

33.2

solve using MATLAB. do not use syms.

Objectives: Convert a second order ODE into a system of two first order ODES. Setup and solve this system in Matlab.
Consider the ODE for a pendulum. Assume g=-9.81 and L=0.6.
d²0
d²² +0=0
do
dt = y2 = velocity.
1. Write this ODE as a system of equations, where
2. For initial conditions at t=0, assume 0 = 0.1 and y₂ = 0. Assume a step size of 0.1 with values of time from 0 to 4 seconds.
3. Solve the system of ODEs using ode45() and plot the output for both velocity (v) and angle (theta).
4. If you have extra time consider how this approach might be expanded to not need the small angle approximation ....
Transcribed Image Text:Objectives: Convert a second order ODE into a system of two first order ODES. Setup and solve this system in Matlab. Consider the ODE for a pendulum. Assume g=-9.81 and L=0.6. d²0 d²² +0=0 do dt = y2 = velocity. 1. Write this ODE as a system of equations, where 2. For initial conditions at t=0, assume 0 = 0.1 and y₂ = 0. Assume a step size of 0.1 with values of time from 0 to 4 seconds. 3. Solve the system of ODEs using ode45() and plot the output for both velocity (v) and angle (theta). 4. If you have extra time consider how this approach might be expanded to not need the small angle approximation ....
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 1 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Elements Of Electromagnetics
Elements Of Electromagnetics
Mechanical Engineering
ISBN:
9780190698614
Author:
Sadiku, Matthew N. O.
Publisher:
Oxford University Press
Mechanics of Materials (10th Edition)
Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:
9780134319650
Author:
Russell C. Hibbeler
Publisher:
PEARSON
Thermodynamics: An Engineering Approach
Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:
9781259822674
Author:
Yunus A. Cengel Dr., Michael A. Boles
Publisher:
McGraw-Hill Education
Control Systems Engineering
Control Systems Engineering
Mechanical Engineering
ISBN:
9781118170519
Author:
Norman S. Nise
Publisher:
WILEY
Mechanics of Materials (MindTap Course List)
Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:
9781337093347
Author:
Barry J. Goodno, James M. Gere
Publisher:
Cengage Learning
Engineering Mechanics: Statics
Engineering Mechanics: Statics
Mechanical Engineering
ISBN:
9781118807330
Author:
James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:
WILEY