comparison Real/plotAllFramesAllWindows.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 mean accuracy data of all audio samples for each window
2 %against frame size
3
4 % Developer: - Alice Clifford (alice.clifford@eecs.qmul.ac.uk)
5
6
7 clear all
8 close all
9
10 frameSizeVec=[128 256 512 1024 2048 4096 8192]; %framesizes tested
11 frameSizeLabels=cell(length(frameSizeVec),1);
12
13
14 for f=1:length(frameSizeVec)
15 load(strcat('accuracyData_290512_framesize',int2str(frameSizeVec(f))));
16 meanPercHits(f,:)=mean(percHitsMat);
17
18 frameSizeLabels{f}=int2str(frameSizeVec(f));
19
20 end
21
22
23
24 figure
25 figWidth=7;
26 figHeight=3.5;
27 set(gcf, 'units', 'inches', 'pos', [0 1000 figWidth figHeight])
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
38 plot(meanPercHits,'LineWidth',2)
39
40
41 winShapesLabels={
42 'Blackman';
43 'Blackman-Harris';
44 'Flat Top';
45 'Gaussian';
46 'Hamming';
47 'Hann';
48 'Rectangular';}
49
50 set(gca,'xticklabel',frameSizeLabels)
51 xlabel('Framesize (samples)')
52 ylabel('Mean accuracy (%)')
53 legend(winShapesLabels,'Location','SouthEast')