Acceleration vs Time data into FFT
古いコメントを表示
I have acceleration vs time data. I want to get FFT value from the data.Can someone show me the way?
採用された回答
その他の回答 (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 件のコメント
nur yusof
2015 年 1 月 17 日
nur yusof
2015 年 1 月 17 日
Kirthi Devleker
2015 年 1 月 17 日
編集済み: Kirthi Devleker
2015 年 1 月 17 日
You can watch "Spectral Analysis with MATLAB" webinar. Your question about plotting the FFT value is answered there
Image Analyst
2015 年 1 月 18 日
How is this helping? It's the same as the code I gave you and you said it was unreasonable. Except his code somehow changes the length of the signal to a power of 2 which is not necessary.
nur yusof
2015 年 1 月 18 日
編集済み: Image Analyst
2015 年 1 月 18 日
Image Analyst
2015 年 1 月 18 日
I don't know what 2 or 3 digits means in this context. And it doesn't look unreasonable to me.
I still say my and Shoaibur's code are essentially the same or very similar code. So show the results of Shoaibur's code and tell me how it helped you solve it.
By the way, you might want to call fftshift().
nur yusof
2015 年 1 月 18 日
nur yusof
2015 年 1 月 21 日
カテゴリ
ヘルプ センター および 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!


