Question: Consider the following graph of this coupled pendulum system: Spring - Mass System Fig. 1 . The Coupled Pendulum System Note that the two pendulums
Consider the following graph of this coupled pendulum system:
SpringMass System
Fig. The Coupled Pendulum System
Note that the two pendulums are coupled by a linear spring.
Under the assumption of small angular displacements, the dynamics of this system are captured by the coupled system of ordinary differential equations:
theta theta mLtheta gKLKLtheta mLtheta theta mLtheta gKLKLtheta mL
where:
m is the mass of the first point mass
m is the mass of the second point mass
L is the length of the first pendulum
L is the length of the second pendulum
theta is the angular position of the first pendulum
theta is the angular position of the second pendulum
g is acceleration due to gravity
K is the Hooke's Law spring constant for the spring
Note that we are also going to work with the following variables:
t is the initial time
tf is the final time
Delta t is the time step
Delta R is the relative tolerance
Delta A is the absolute tolerance
You are a junior engineer working for an engineering firm. Your manager asks you to create a GUI, though fortunately you took CMPSC at Penn State and you have all of the knowledge that you would need to deliver the GUI. Per your manager's specifications, your GUI must meet the following design criteria:
Using GUIDE, create a layout reasonably similar to the layout provided in Figs. and Make sure to adjust the text displayed by the panel, static textboxes, edit textboxes, and pushbuttons to match that displayed or not displayed, in the case of the edit textboxes in Fig. In particular, your GUI layout should contain:
edit textboxes to allow the user to enter values for theta in degtheta in degsectheta in deg and theta in degsec
static textboxes to serve as labels for the edit textboxes described in the previous subbullet
A panel to group together the edit and static textboxes noted in the previous two subbullets
push buttons one to activate the graph of the plot, and one to reset the graph
An axis to depict the plot
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
