MATLAB: How can i plot these problems in matlab?? I have x and y coordinate of node 3 and node 4 .

time domain vs acceleration data plot

2.The free vibration test is carried out on 2DOF building in shake table. The vibration response obtained from wireless accelerometer sensor both in x and y directions are attached for further data processing.
Write a code in MATLAB software to,
(a) Plot the time domain acceleration data
(b) Plot the frequency domain data
(c) Estimate the first two natural frequency of a structure.
i m beginner in matlab so please help.

Best Answer

To plot the acceleration , time data you can use plot
plot(Time,acceleration)
To plot the frequency domain, you need to convert the aacceleration data to frequency. For this you have to use fft.
After converting to frequency, you can get your required frequencies.