Acceleration vs Time data into FFT
8 ビュー (過去 30 日間)
古いコメントを表示
I have acceleration vs time data. I want to get FFT value from the data.Can someone show me the way?
0 件のコメント
採用された回答
その他の回答 (1 件)
Shoaibur Rahman
2015 年 1 月 17 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Fourier Analysis and Filtering についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!