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

mx  ′′(t) + rx ′(t) + kx(t) = mg, x(0) = x ,x′(0) = x
                                        0          1
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.


PIC

Figure 1: MATLAB_Vertical_Spring GUI


Pop-up boxes will appear guiding you through the input process.


PIC

Figure 2: Pop-up boxes for parameters


Once all the inputs have been made a movie will display the position of the mass over time.


PIC

Figure 3: Final frame of movie displaying spring-mass motion