patan.gova
Full Member level 3
- Joined
- Dec 19, 2011
- Messages
- 172
- Helped
- 4
- Reputation
- 8
- Reaction score
- 0
- Trophy points
- 1,296
- Activity points
- 2,776
Apart form counter-intuitive display of filter response with Matlab filtfilt "zero-phase" function, the output looks expectable. I would prefer to see the causal FIR output signal.It looks like the filter is working correctly, since it's doing a good job of removing the 6Hz pulses, while passing the slowly changing DC average.
Presumably that's what's wanted, since you've specified a low-pass filter with a response that rolls off sharply above 4Hz.
No,I expected it to be a DC line because if we theoretically assume that we are removing freq greater than 4Hz in this case its 6HZ freq so it should give out a DC line isn't it.
That is inevitable. The reason is simple - The 6Hz pulse signal contains frequencies of 12Hz, 18Hz, 24Hz, 30Hz etc as well as 6Hz. Those higher frequencies are what gives the waveform it's shape. If you remove the higher frequencies, the output will look like a sine wave, as you have found.when I use fc=8Hz it is allowing the 6Hz freq components but they are attenuated and they output looks like sine waveform instead of pulse signal as input.
FvM gave a suggestion in post 13. There is an explanation and some pictures here: https://en.wikipedia.org/wiki/Fourier_seriesThanks for the explanation but how to visualise or analyse prctically....
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?