Acceleration vs Time data into FFT

27 views (last 30 days)
nur yusof
nur yusof on 17 Jan 2015
Commented: nur yusof on 21 Jan 2015
I have acceleration vs time data. I want to get FFT value from the data.Can someone show me the way?

Accepted Answer

Image Analyst
Image Analyst on 17 Jan 2015
spectrum = fft(signal);
  8 Comments
nur yusof
nur yusof on 21 Jan 2015
I got the FFT value from your coding image analyst.Is the bandwidth of FFT data according to my time history domain data?If not,how to ensure the bandwidth is within the interval?Can you brief me about the coding? My bandwidth range is 50Hz-500Hz from time domain history data.

Sign in to comment.

More Answers (1)

Shoaibur Rahman
Shoaibur Rahman on 17 Jan 2015
Define the number of DFT points N, and then perform the fft.
N = pow2(nextpow2(length(signal)));
y = fft(signal,N);
plot(1:N,abs(y))
If the length of your signal is a big number then set the value of N manually to a lower value, like N = 64, 128, 256, etc. This will make your figure to look better sometime, but note that that may not be accurate always from the computational point of view.
  8 Comments
nur yusof
nur yusof on 21 Jan 2015
I got the FFT value from the coding.Is the bandwidth of FFT data according to my time history domain data?If not,how to ensure the bandwidth is within the interval?Can you brief me about the coding? My bandwidth range is 50Hz-500Hz from time domain history data.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!