Revision 28:02aa9826efe0 multithreshold 1.46/testFM.m

View differences:

multithreshold 1.46/testFM.m
1
function testFM(showPSTHs)
1
function testFM(BFlist,paramsName,showPSTHs)
2 2
%   specify whether you want AN 'probability' or 'spikes'
3 3
%       spikes is more realistic but takes longer
4 4
%       refractory effect is included only for spikes
......
10 10
%
11 11
% Demonstration is based on Harris and Dallos
12 12

  
13
global experiment  stimulusParameters
14 13
global inputStimulusParams outerMiddleEarParams DRNLParams 
15 14
global IHC_VResp_VivoParams IHCpreSynapseParams  AN_IHCsynapseParams
16 15

  
......
24 23
sampleRate=50000;
25 24

  
26 25
% fetch BF from GUI: use only the first target frequency
27
BFlist=stimulusParameters.targetFrequency(1);
28 26
maskerFrequency=BFlist;
29 27
maskerDuration=.1;
30 28

  
......
141 139
        
142 140
        global  ANprobRateOutput  tauCas  ...
143 141

  
144
    MAPparamsName=experiment.name;
145 142
    showPlotsAndDetails=0;
146 143

  
147 144
AN_spikesOrProbability='probability';
148 145

  
149 146
MAP1_14(inputSignal, 1/dt, targetFrequency, ...
150
    MAPparamsName, AN_spikesOrProbability);
147
    paramsName, AN_spikesOrProbability);
151 148
 
152 149
    [nFibers c]=size(ANprobRateOutput);
153 150
    nLSRfibers=nFibers/length(tauCas);
......
235 232
legend(strvcat(num2str(maskerLevels'-thresholdAtCF)), -1)
236 233

  
237 234
% ------------------------------------------------- display parameters
238
disp(['parameter file was: ' experiment.name])
235
disp(['parameter file was: ' paramsName])
239 236
fprintf('\n')
240 237
% UTIL_showStruct(inputStimulusParams, 'inputStimulusParams')
241 238
% UTIL_showStruct(outerMiddleEarParams, 'outerMiddleEarParams')

Also available in: Unified diff