MATLAB_Floor_Displacement
Description and Help
MATLAB_Floor_Displacement is a graphical user interface (GUI) that plots solutions to a floor displacement model for a 5-story building. The GUI assumes the displacement of each floor satisfies
![]() |
where m1,m2,
,m5 are the masses of floors one through five. The parameters
k0,k1,
,k4 are the spring constants representing the restorative force realized
by the walls that connect the ground to the first floor, the first floor to the
second, etc... For example, k4 is the ‘spring constant’ for the wall that connects
the fourth floor to the fifth. The function g(t) represents the position of the
ground during the earthquake. For a complete description of the model see the
text. The GUI assumes all initial conditions are zero representing the
building is at rest and has not been displaced before the earthquake
begins.
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 motion of the floors. Pay careful attention to the scale before drawing conclusions about the motion of the building.
Choose ‘Plot Individual Floor Displacements vs Time’ if you would like a plot that separates each floor’s motion.