MATLAB_Vertical_Spring
Description and Help
Description:
MATLAB_Vertical_Spring is a graphical user interface (GUI) that plots
solutions to a spring-mass model. The GUI assumes the position of the mass
relative to the spring’s natural length can be modeled by
where m is a positive parameter representing mass, in kilograms, and k the
positive parameter from Hooke’s law. The parameter r represents the
proportionality constant from the resistance force assumption (see text
for complete details); x0 the initial position of the mass, in meters;
and x1 the initial velocity of the mass. As mentioned above and in the
text, x(t) represents the position of the mass relative to its natural
position at time t measured in seconds. Furthermore due to a choice
made in the modeling process, x(t) > 0 means below the natural length
position.
To use the GUI, click on the ‘Input Parameters and Solve’ Button.
Pop-up boxes will appear guiding you through the input process.
Once all the inputs have been made a movie will display the position of the
mass over time.