Question
Must Be answered in MATLAB code: The equation of motion for a pendulum whose base is accelerating horizontally with an acceleration a(t) is: L(theta double
Must Be answered in MATLAB code: The equation of motion for a pendulum whose base is accelerating horizontally with an acceleration a(t) is:
L(theta double dot)+gsin(theta)=a(t)cos(theta)
Suppose that g = 9.81m/s2, L = 1m and Theta dot(0) = 0. Plot theta(t) for (0 < t < 10s for the following 3 cases.
Your script should create three separate plots, labeled appropriately. Nothing should be printed to the command window. a. Constant acceleration: a = 5m/s2, and theta(0) = 0.5 rad b. Constant acceleration: a = 5m/s2, and theta(0) = 3 rad c. Acceleration linear with time: a = 0.5t m/s2, and theta(0) = 3 rad
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started