Mercurial > hg > gccphat-windowing
comparison Simulation/plotAllWin_lowPass.m @ 0:ab043bd3b162 tip
First commit
author | Alice Clifford <alice.clifford@eecs.qmul.ac.uk> |
---|---|
date | Mon, 11 Jun 2012 17:42:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ab043bd3b162 |
---|---|
1 %Script to plot accuracy for all windows with low pass filtered noise as | |
2 %input | |
3 | |
4 % Developer: - Alice Clifford (alice.clifford@eecs.qmul.ac.uk) | |
5 | |
6 | |
7 clear all | |
8 close all | |
9 | |
10 winShapes={ | |
11 'blackman', | |
12 'blackmanharris', | |
13 'flattopwin', | |
14 'gausswin', | |
15 'hamming', | |
16 'hann', | |
17 'rectwin', | |
18 }; | |
19 | |
20 winShapesLabels={ | |
21 'Blackman'; | |
22 'Blackman-Harris'; | |
23 'Flat Top'; | |
24 'Gaussian'; | |
25 'Hamming'; | |
26 'Hann'; | |
27 'Rectangular';} | |
28 | |
29 | |
30 for w=1:length(winShapes) | |
31 load(strcat('noiseExpandBand_',winShapes{w})); | |
32 percHitsMat=percHitsMat'; | |
33 | |
34 allWinPercHitsMat(:,w)=percHitsMat(:,1); | |
35 | |
36 | |
37 end | |
38 | |
39 | |
40 | |
41 figure | |
42 | |
43 figWidth=7; | |
44 figHeight=3; | |
45 set(gcf, 'units', 'inches', 'pos', [0 1000 figWidth figHeight]) | |
46 | |
47 colorVec=(linspace(0,0.5,2))'; | |
48 | |
49 colorMat=[colorVec colorVec colorVec]; | |
50 | |
51 set(gcf,'DefaultAxesColorOrder',colorMat) | |
52 set(gcf,'DefaultAxesLineStyleOrder','-|--|:|-.') | |
53 | |
54 set(gca,'FontSize',8) | |
55 | |
56 semilogx(bandWidth,allWinPercHitsMat,'LineWidth',2) | |
57 xlim([min(bandWidth) 22050]) | |
58 | |
59 xlabel('Bandwidth (Hz)') | |
60 ylabel('Accuracy (%)') | |
61 legend(winShapesLabels,'Location','SouthEast') |