MATLAB Answers

Ze Zhang
0

How can I design a low pass filter using fft on a signal with no information of time step?

Asked by Ze Zhang
on 9 Mar 2016
Hi there, I have a vector which is not evenly distributed in the time domain. But I still want to filter out the spikes on the curve using a LPF constructed from fft. What I want to do is to find the frequency where the largest amplitude in the frequency domain oppears, add 1 to it and use the outcome as the filter threshold.
But the thing is, I don't know how to calculate f without any info of time step. And apparently, if you give it different time steps you will get different base frequency, and the filtered signal can be quite different.
And my questions are:
  1. Can I use fft in this case?
  2. If so, how to implement it?
  3. If not, what are some workarounds for this?
I attached data files for better understanding. col.mat is the signal which is not evenly distributed in time. And the filtered signal should be something like the shape in BW.pdf.
Any help is really appreciated. And thanks in advance!

  0 Comments

Sign in to comment.

0 Answers