06 Im 04 05 0 05 02 0 0 0 02 10 15 1 05 0 05 1 Figure 1 Left
0.6 Im 0.4 0.5 0 -0.5 0.2 0 0 0 -0.2 10 15 1 -0.5 0 0.5 1 Figure 1: (Left) Impulse response and (right) pole-zero plot of an FIR filter 
Solution
Impulse responce:
clear all;
close all;
clc;
t=-2:1:2;
y=[0 0 1 0 0];
stem(t,y);
xlabel(\'time\');
ylabel(\'amplitude\');
title(\'impulse sequence\');
second method:
clear all;
close all;
clc;
x1=input(\'enter the first sequence\');
x2=fliplr(x1);
l=length(x1);
x1=fft(x1);
x2=fft(x2);
f=x1.*x2;
j=ifft(f);
subplot(2,2,1);
stem(x1);
xlabel(\'input sequence\');
ylabel(\'amplitude\');
title(\'input sequence\');
subplot(2,2,2);
stem(j);
xlabel(\'time\');
ylabel(\'amplitude\');
title(\'impulse responce\')

