How to properly filter
이전 댓글 표시
Hi,
I would like filter a cosinus wave with a Gaussian Filter. How to properly filter my signal with a Gaussian Filter ?
Thanks.
답변 (2개)
Image Analyst
2015년 5월 11일
0 개 추천
You can use conv(). Plug in the Gaussian signal, and your cosine signal, and you're done. Or you can use filter(). Is this homework?
댓글 수: 2
Image Analyst
2015년 5월 11일
Anonyme's "Answer" moved here:
Is it correct to use 'same' in the function conv() to keep the same length before filtering ?
Image Analyst
2015년 5월 11일
Yes. That will give you an output signal only where the input signal is defined. But at the ends, you have only half a Gaussian because the peak of the Gaussian is at element 1 or the last element. If you want only elements where the Gaussian filter is completely contained in the signal, then use the 'valid' option. If you want the case where you get a signal when the right tail of the Gaussian just barely touches the left element of the signal, then use the 'full' option, which will give a signal that is longer than the original signal by the window width of your Gaussian.
Star Strider
2015년 5월 11일
편집: Star Strider
2015년 5월 11일
0 개 추천
카테고리
도움말 센터 및 File Exchange에서 Get Started with DSP System Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!