Calculating FIR filter coefficients with the windowing method using the Rectangular Window

조회 수: 7 (최근 30일)
Please advice how to calculate FIR filter coefficients with windowing method using the Rectangular Window function and convolution method (using the Output Side Algorithm from Chapter 6)

답변 (1개)

Image Analyst
Image Analyst 2015년 3월 27일
Just create a 2D array of weights using whatever way you want. For example to get a Gaussian use fspecial():
kernel = fspecial('Gaussian', 15, 5)
outputImage = conv2(double(inputImage), kernel, 'same'); % Blur the image
  댓글 수: 2
Sundeks
Sundeks 2015년 3월 28일
편집: Sundeks 2015년 3월 28일
Its audio signal, not the images. What application can calculate this?
Image Analyst
Image Analyst 2015년 3월 29일
conv() is for 1-D signals
window = ones(1, 9); % Whatever length you want
output = conv(signal, window, 'same');
Change the numbers in the window kernel to do various kinds of filters. If they're uniform, it's known as a moving average or box filter.

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

카테고리

Help CenterFile Exchange에서 Statistics and Linear Algebra에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by