フィルターのクリア

Low pass or high pass filter using impulse response.

2 ビュー (過去 30 日間)
Bob
Bob 2013 年 10 月 20 日
回答済み: Image Analyst 2013 年 10 月 20 日
I have a .wav sound file that I want to filter with either a low pass or high pass filter using impulse response. my code is the following
[x,fs] = wavread('1.wav'); h = [-1 1]; %impulse response coefficients y = filter(h,1,x); %filter
I do not know which values of h I should pick to get low pass or high pass. I would like the filter to be as ideal as possible. Thanks.

回答 (1 件)

Image Analyst
Image Analyst 2013 年 10 月 20 日
All positive weights will blur the signal and be a low pass filter. Negative weights will be required to do a high pass filter. To get more control of what frequencies get filtered, you will have to do it in the spectral domain - use fft().

カテゴリ

Help Center および File ExchangeAudio Processing Algorithm Design についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by