フィルターのクリア

How to properly filter

1 回表示 (過去 30 日間)
Anonyme Anonyme
Anonyme Anonyme 2015 年 5 月 11 日
編集済み: Star Strider 2015 年 5 月 11 日
Hi,
I would like filter a cosinus wave with a Gaussian Filter. How to properly filter my signal with a Gaussian Filter ?
Thanks.
  2 件のコメント
Thomas Koelen
Thomas Koelen 2015 年 5 月 11 日
What are you filtering?
Anonyme Anonyme
Anonyme Anonyme 2015 年 5 月 11 日
I am trying to implement a GFSK Modulation. So I want to filter the two cosinus waves before modulation.

サインインしてコメントする。

回答 (2 件)

Image Analyst
Image Analyst 2015 年 5 月 11 日
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
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
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
Star Strider 2015 年 5 月 11 日
編集済み: Star Strider 2015 年 5 月 11 日
Use the gaussdesign function in the Signal Processing Toolbox.
Use the upfirdn function to filter it.

カテゴリ

Help Center および File ExchangeGet Started with DSP System Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by