Plot different window function using MATLAB
1.Introduction:-
2.Problem Statement:-
To plot different window using MATLAB.
3.Program:-
clc;
clear all;
close all;
l=64;
a=bartlett(l);
subplot(8,2,1);
plot(a)
title('bartlett window')
b=barthannwin(l);
subplot(8,2,2);
plot(b)
title('barthannwin window')
c=blackman(l);
subplot(8,2,3);
plot(c)
title('blackman window')
d=blackmanharris(l);
subplot(8,2,4);
plot(d)
title('blackmanharris window')
e=bohmanwin(l);
subplot(8,2,5);
plot(e)
title('bohmanwin window')
f=chebwin(l);
subplot(8,2,6);
plot(f)
title('chebwin window')
g=flattopwin(l);
subplot(8,2,7);
plot(g)
title('flattopwin window')
j=hamming(l);
subplot(8,2,8);
plot(j)
title('hamming window')
k=hann(l);
subplot(8,2,9);
plot(k)
title('hann window')
m=kaiser(l);
subplot(8,2,10);
plot(m)
title('kaiser window')
n=nuttallwin(l);
subplot(8,2,11);
plot(n)
title('nuttallwin window')
o=parzenwin(l);
subplot(8,2,12);
plot(o)
title('parzenwin window')
p=rectwin(l);
subplot(8,2,13);
plot(p)
title('rectwin window')
q=taylorwin(l);
subplot(8,2,14);
plot(q)
title('taylorwin window')
r=taylorwin(l);
subplot(8,2,15);
plot(r)
title('taylorwin window')
s=tukeywin(l);
subplot(8,2,16);
plot(s)
title('tukeywin window')
4.How to use this code:-
Here you have to only copy the code to MATLAB and and give the location of the images on which you wants to perform given operation.
5.Output :-
6.Conclusion -
Here we have plotted different window function using MATLAB .
Window function plays vital role in IIR filter designing. Hence while designing filter window is required.
To plot different window using MATLAB.
3.Program:-
clc;
clear all;
close all;
l=64;
a=bartlett(l);
subplot(8,2,1);
plot(a)
title('bartlett window')
b=barthannwin(l);
subplot(8,2,2);
plot(b)
title('barthannwin window')
c=blackman(l);
subplot(8,2,3);
plot(c)
title('blackman window')
d=blackmanharris(l);
subplot(8,2,4);
plot(d)
title('blackmanharris window')
e=bohmanwin(l);
subplot(8,2,5);
plot(e)
title('bohmanwin window')
f=chebwin(l);
subplot(8,2,6);
plot(f)
title('chebwin window')
g=flattopwin(l);
subplot(8,2,7);
plot(g)
title('flattopwin window')
j=hamming(l);
subplot(8,2,8);
plot(j)
title('hamming window')
k=hann(l);
subplot(8,2,9);
plot(k)
title('hann window')
m=kaiser(l);
subplot(8,2,10);
plot(m)
title('kaiser window')
n=nuttallwin(l);
subplot(8,2,11);
plot(n)
title('nuttallwin window')
o=parzenwin(l);
subplot(8,2,12);
plot(o)
title('parzenwin window')
p=rectwin(l);
subplot(8,2,13);
plot(p)
title('rectwin window')
q=taylorwin(l);
subplot(8,2,14);
plot(q)
title('taylorwin window')
r=taylorwin(l);
subplot(8,2,15);
plot(r)
title('taylorwin window')
s=tukeywin(l);
subplot(8,2,16);
plot(s)
title('tukeywin window')
4.How to use this code:-
Here you have to only copy the code to MATLAB and and give the location of the images on which you wants to perform given operation.
5.Output :-
Figure Window
6.Conclusion -
Here we have plotted different window function using MATLAB .
Comments
Post a Comment