How to apply fft and band pass filter with raw data
2 views (last 30 days)
Show older comments
Hi all.
I had a experiment with ultrasonic sensor and obtained non-periodic data like below table.
To analyze this data, I want to use fft and apply band pass filter.
Unfortunately, I'm a super beginner of MATLAB.
Furthermore, when I try to find something on the MATLAB documentation, the default form was for periodic signal. But my data is not.
What should I do? Please give me a little tips.

0 Comments
Accepted Answer
Star Strider
on 9 Apr 2019
Use the bandpass (link) function if you have R2018a or later. Otherwise, use an elliptical filter. These are straightforward to design and implement.
Your data must be sampled at regular intervals. You need to interpolate it to a constant sampling interval, preferably using the Signal Processing Toolbox resample (link) function for the filter to work correctly.
2 Comments
More Answers (0)
See Also
Categories
Find more on Multirate Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!