view 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
line wrap: on
line source
%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')