Mercurial > hg > gccphat-windowing
comparison Simulation/plotRectWin_allBandwidth.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 %Plots accuracy for all filters for rectangular window | |
2 | |
3 % Developer: - Alice Clifford (alice.clifford@eecs.qmul.ac.uk) | |
4 | |
5 | |
6 clear all | |
7 close all | |
8 | |
9 load noiseExpandBand_rectwin | |
10 | |
11 clear percHits %ZERO MATRIX ACCIDENTAL | |
12 | |
13 percHitsMat=percHitsMat'; | |
14 | |
15 | |
16 | |
17 for c=1:length(centreFreq) | |
18 centreFreqLegend{c}=strcat(int2str(centreFreq(c)),' Hz'); | |
19 end | |
20 | |
21 figure | |
22 | |
23 figWidth=3.7; | |
24 figHeight=3.5; | |
25 set(gcf, 'units', 'inches', 'pos', [0 1000 figWidth figHeight]) | |
26 | |
27 | |
28 | |
29 colorVec=(linspace(0,0.5,2))'; | |
30 colorMat=[colorVec colorVec colorVec]; | |
31 | |
32 set(gcf,'DefaultAxesColorOrder',colorMat) | |
33 set(gcf,'DefaultAxesLineStyleOrder','-|--|:|-.') | |
34 | |
35 set(gca,'FontSize',8) | |
36 | |
37 semilogx(bandWidth,percHitsMat,'LineWidth',2) | |
38 | |
39 xlim([min(bandWidth) 22050]) | |
40 | |
41 | |
42 xlabel('Bandwidth (Hz)') | |
43 ylabel('Accuracy (%)') | |
44 | |
45 legend('Low Pass','Band Pass','High Pass','Location','NorthWest') | |
46 |