Apply filter to sound

Hi everyone
I was wondering what is the proper way to apply lets say a lowpass Butterworth filter and a hamming window into a sound i just loaded in Matlab?
Thanks in advance.

 채택된 답변

Wayne King
Wayne King 2011년 12월 1일

1 개 추천

Not sure why you want to apply both the Hamming window and use the Butterworth filter. But say you have the Butterworth filter as coefficients B and A, then use:
output = filter(B,A,input);
If you have the Butterworth filter as a filter object, Hd,
output = filter(Hd,input);
If you wanted to apply the Hamming window before you filter,
output = filter(B,A,input.*hamming(length(input)));
After filtering,
output = output.*hamming(length(output));

댓글 수: 1

Raldi
Raldi 2011년 12월 1일
Thanks Wayne, very useful comment.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

질문:

2011년 12월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by