%Plots accuracy for all filters for rectangular window

% Developer:  - Alice Clifford (alice.clifford@eecs.qmul.ac.uk)


clear all
close all

load noiseExpandBand_rectwin

clear percHits %ZERO MATRIX ACCIDENTAL

percHitsMat=percHitsMat';



for c=1:length(centreFreq)
    centreFreqLegend{c}=strcat(int2str(centreFreq(c)),' Hz');
end

figure

figWidth=3.7;
figHeight=3.5;
set(gcf, 'units', 'inches', 'pos', [0 1000 figWidth figHeight])



colorVec=(linspace(0,0.5,2))';
colorMat=[colorVec colorVec colorVec];

set(gcf,'DefaultAxesColorOrder',colorMat)
set(gcf,'DefaultAxesLineStyleOrder','-|--|:|-.')

set(gca,'FontSize',8)

semilogx(bandWidth,percHitsMat,'LineWidth',2)

xlim([min(bandWidth) 22050])


xlabel('Bandwidth (Hz)')
ylabel('Accuracy (%)')

legend('Low Pass','Band Pass','High Pass','Location','NorthWest')

