Mercurial > hg > map
comparison multithreshold 1.46/plotProfile.m @ 38:c2204b18f4a2 tip
End nov big change
author | Ray Meddis <rmeddis@essex.ac.uk> |
---|---|
date | Mon, 28 Nov 2011 13:34:28 +0000 |
parents | 3ea506487b3b |
children |
comparison
equal
deleted
inserted
replaced
37:771a643d5c29 | 38:c2204b18f4a2 |
---|---|
2 | 2 |
3 addpath (['..' filesep 'profiles']) | 3 addpath (['..' filesep 'profiles']) |
4 | 4 |
5 %% plot profile | 5 %% plot profile |
6 if nargin<1 | 6 if nargin<1 |
7 fgName = myFile; | 7 fgName = 'profile_JSAN_R'; |
8 bgName = ''; | 8 bgName = ''; |
9 end | 9 end |
10 | 10 |
11 cmd=['foreground = ' fgName ';']; | 11 cmd=['foreground = ' fgName ';']; |
12 eval(cmd) | 12 eval(cmd) |
66 % IFMCs | 66 % IFMCs |
67 for BFno=1:length(foreground.IFMCFreq) | 67 for BFno=1:length(foreground.IFMCFreq) |
68 freq=foreground.MaskerRatio'*foreground.IFMCFreq(BFno); | 68 freq=foreground.MaskerRatio'*foreground.IFMCFreq(BFno); |
69 subplot(2,1,2) | 69 subplot(2,1,2) |
70 semilogx(freq,foreground.IFMCs(BFno,:),'r','lineWidth',3), hold on | 70 semilogx(freq,foreground.IFMCs(BFno,:),'r','lineWidth',3), hold on |
71 ylim([0 100]) | 71 ylim([-20 100]) |
72 xlim([100 12000]) | 72 xlim([100 12000]) |
73 % grid on | 73 % grid on |
74 end | 74 end |
75 xlabel('frequency (Hz)') | 75 xlabel('frequency (Hz)') |
76 ylabel('masker dB / probe dB') | 76 ylabel('masker dB / probe dB') |
77 set(gca,'XTick',foreground.IFMCFreq) | 77 set(gca,'XTick',foreground.IFMCFreq) |
78 set(gca,'Ytick', [-20 0 50 100]) | |
78 | 79 |
79 if ~isempty(bgName) | 80 if ~isempty(bgName) |
80 for BFno=1:length(background.IFMCFreq) | 81 for BFno=1:length(background.IFMCFreq) |
81 freq=background.MaskerRatio'*background.IFMCFreq(BFno); | 82 freq=background.MaskerRatio'*background.IFMCFreq(BFno); |
82 subplot(2,1,2) | 83 subplot(2,1,2) |