Frequency Content within a signal

2 views (last 30 days)
Belal
Belal on 23 Nov 2014
Commented: Image Analyst on 23 Nov 2014
Hello,
I am trying to get the frequency content of a signal. Basically, the measurements are encoders readings with noise. I want to find out which frequency is due to the encoder output and want to design a filter to filter out the unwanted frequencies. I know fft transforms the data from time domain, but I am having hard time remember how to read the graph/output of fft. My plan is to estimate the unwanted freq. to get the cut-off freq. for the band-pass filter.
Any help is greatly appreciated.

Answers (1)

Image Analyst
Image Analyst on 23 Nov 2014
Maybe you should try pwelch() instead (it's in the Signal Processing Toolbox). Basically zero out elements of the spectral array and transform back to see if it does what you want. The elements closest to the origin will be low frequencies while those farther away are higher frequencies. I do have some demos but it's for an image, not a 1D signal. For what it's worth, they're attached.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!