Professional Documents
Culture Documents
Exp 8
Exp 8
8
Aim: To plot the Kaiser window and its
frequency response for different
values of M (49, 99,149) and (0,
10, and 50). Comment on the results.
The Kaiser window is a window function
used for digital signal processing and is
defined by the formula
Where:
Id=Id+((0.25*(xd.^2)).^s)/(factoria
l(s)^2);
end
I=In./Id;
w=I;
wn=n;
subplot(311);
stem(wn,w);
a=0;b=0;
for n=n
a=a+1;
for k=-f:0.01:f
b=b+1;
g(a,b)=exp(-j*k*n);
end
b=0;
end
y=w*g;
k=-f:0.01:f;
subplot(3,1,2)
plot(k,abs(y));
xlabel('FREQUENCY');
ylabel('AMPLITUDE');
title('WINDOW FUNCTION');
y1=max(y);
y2=(abs(y)/y1);
z=20*log10(y2);
subplot(3,1,3);
plot(k,z);
xlabel('FREQUENCY');
ylabel('AMPLITUDE');
title('WINDOW FUNCTION');
Sol.
clear all;
clc;
f=0.25*pi;
M=input('Enter M=');
a=input('enter a=');
n=0:M-1;
N=length(n);
xn=a*sqrt(1-(1-((2*n)/(M-1))).^2);
xd=a;
In=1;
Id=1;
for s=1:3
In=In+((0.25*(xn.^2)).^s)/(factoria
l(s)^2);
end
for s=1:3
a=0; m=49
a=0; m=99
a=10; m=49
a=10; m=149
a=50; m=99
a=0; m=149
a=10; m=99
a=50; m=49
a=50; m=149