You are on page 1of 1

clc

clear all
close all
% FIR Lowpass filter using Rectangular Window
clear all;clc;close all;
N=-12:1:12;
%t=N-1/2=25-1/2=12
b = 0.2*sinc(0.2*(-12:12));

%Impulse response

h = b.*rectwin(25)'
freqz(h,1,512)
title('Response Using Rectangular Window')