Professional Documents
Culture Documents
%impulse response
for m=1:61;
n=m-31;
x(m)=n;
if (n==-12)
y(m)=1
else y(m)=0;
end
end
title('Nawshin 517')
figure
plot(x,y,'-mo',...
'LineWidth',2,...
'MarkerEdgeColor','k',...
'MarkerFaceColor',[.49 1 .63],...
'MarkerSize',10)
OUTPUT:
y=
Columns 1 through 13
0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 14 through 26
0 0 0 0 0 1 0 0 0 0 0 0 0
Columns 27 through 39
0 0 0 0 1 0 0 0 0 0 0 0 0
Columns 40 through 52
0 0 0 0 0 0 0 0 0 0 0 0 0
Columns 53 through 61
0 0 0 0 0 0 0 0 0