Write a script file which will determine the displacement, MATLAB Programming

The mass of the spring-mass-damper system shown below was initially displaced by 1 meter to the right and then released. The subsequent acceleration of the mass was measured using an accelerometer; this data is contained in the file smd_data.txt posted on the class web site.

The file contains ascii data which provides the acceleration of the mass as a function of time; the first column of data in the file is time in seconds, the second column is the acceleration in meters/sec2. We wish to determine the maximum compressive force experienced by the spring during the time range provided in the data. The spring force is equal to the spring rate times the displacement, Fspring = ks.

1354_Determine the displacement of the mass.png

Write a script file which will determine the displacement of the mass as a function of time from the acceleration data. Trapezoidal integration will provide sufficient accuracy to infer the position and velocity of the seat as a function of time. Your program should plot the position of the mass as a function of time. You can use this plot to estimate the maximum negative displacement of the mass; the maximum compressive force is this displacement times the spring rate (k = 100 N/m).

Posted Date: 5/7/2013 1:43:47 AM | Location : United States







Related Discussions:- Write a script file which will determine the displacement, Assignment Help, Ask Question on Write a script file which will determine the displacement, Get Answer, Expert's Help, Write a script file which will determine the displacement Discussions

Write discussion on Write a script file which will determine the displacement
Your posts are moderated
Related Questions
Algorithms: Before writing any computer program, it is very useful to first outline the steps which will be essential. An algorithm is the series of steps required to solve a

I am doing project "Recognizing people in video based on their body" the system will use MATLAB to detect people based on thier body and then recognize them from their clothes "us

Water flow varies with water pressure. Two studies were made and two equations were developed: Parabolic fit:  F = 59.60180 + 3.77965 P - 0.01536 P 2       P


i want the MATLAB code for properties of refrigerant R134a, Pentane and VCR Refrigeration cycle. Thanks

use the loop for to produce [-1 -1 -1 -1; 0 -1 -1 -1; 0 0 -1 -1; 0 0 0 -1]

How to Open Simpower: 1. Open MATLAB 2. In the "Command Window" write ' simulink ' and press Enter or click on the Simulink icon. 3. Simulink Library Browser w

Strings: The MATLAB also handles strings that are a sequence of characters in single quotes. For illustration, using the double function on a string will represent the equival

Create a GUI that has A button to bring up a dialog to select a text file and read it in. Plot the x,y values on the GUI Have text entry values, one for each parameter, in which