Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Urgent: How do I perform FFT on a time signal
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Jan
el 31 de Jul. de 2013
While this question might be "urgent" for you, it is not "urgent" for all readers. Therefore it is recommended toavoid such pushing terms.
Respuestas (3)
dpb
el 26 de Jul. de 2013
doc fft
Sampling frequency is set by the hardware, time then determines the length.
0 comentarios
Youssef Khmou
el 26 de Jul. de 2013
Editada: Youssef Khmou
el 26 de Jul. de 2013
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 comentarios
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!