How to see the frequencies present in a measured signal.
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gova ReDDy
am 7 Apr. 2014
Kommentiert: Gova ReDDy
am 9 Apr. 2014
Hello,
I measured a pulse signal sampled with a frequency of 64Hz and want to see the fre-quencies responsible for the signal. Can some explain how to plot the power spectrum using FFT function to see the fre-quecy components responsible for the pulse.The pulse data of 10secs duration is at-tached below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160404/image.jpeg)
4 Kommentare
Joseph Cheng
am 7 Apr. 2014
the documentation for fft has examples of how to do it. http://www.mathworks.com/help/matlab/ref/fft.html
The first example can be adapted with the information you gave above.
Akzeptierte Antwort
Image Analyst
am 7 Apr. 2014
What make you think a square wave has only one frequency? A sine wave does , but a square wave is made up of an infinite number of sine waves . Hence you get power at multiple frequencies. The FFT of a single square pulse is a sinc function, but when you convolve with a comb function to get a square wave train, you'll get tons of sinc's all adding together. Here are some links with basic info on FFT theory:
8 Kommentare
dpb
am 8 Apr. 2014
What was your sampling frequency and length? The relationship is
df=1/T
where T is n*dt and n is number of samples and dt the sample rate. From that you can set the frequency axis appropriately for your sample case.
Again, I commend the example at
doc fft
to your attention -- it has exactly the right steps illustrated for a sample case; simply plug your numbers in in the appropriate places. The only difference is they chose to use the power of 2 length FFT, but the same is true if you just use the signal length.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spectral Measurements finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!