Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Urgent: How do I perform FFT on a time signal
1 回表示 (過去 30 日間)
古いコメントを表示
I have a vibration time signal am working on. I am finding it difficult to write the code to perform fft on it. Could anyone help with it please? The length of the signal is 40000 while the sampling frequency is 20000.
Additionally, how are the length of the signal and sampling frequency arrived at?
2 件のコメント
Jan
2013 年 7 月 31 日
While this question might be "urgent" for you, it is not "urgent" for all readers. Therefore it is recommended toavoid such pushing terms.
回答 (3 件)
dpb
2013 年 7 月 26 日
doc fft
Sampling frequency is set by the hardware, time then determines the length.
0 件のコメント
Youssef Khmou
2013 年 7 月 26 日
編集済み: Youssef Khmou
2013 年 7 月 26 日
hi, given your signal X,
Fs=2e+4;
Resolution=512;
Ts=1/Fs;
N=4e+4;
T=N*Ts;
Fx=abs(fft(X,Resolution));
Frequency=(0:Resolution-1)*Fs/Resolution;
figure, plot(Frequency(1:end/2),Fx(1:end/2)); % two sided to one side
0 件のコメント
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!