comparison multithreshold 1.46/old files/MAPmodel.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 b51bf546ca3f
children
comparison
equal deleted inserted replaced
37:771a643d5c29 38:c2204b18f4a2
18 MAPparamsName=experiment.name; 18 MAPparamsName=experiment.name;
19 showPlotsAndDetails=experiment.MAPplot; 19 showPlotsAndDetails=experiment.MAPplot;
20 AN_spikesOrProbability='spikes'; 20 AN_spikesOrProbability='spikes';
21 21
22 % [response, method]=MAPsequenceSeg(audio, method, 1:8); 22 % [response, method]=MAPsequenceSeg(audio, method, 1:8);
23 global ICoutput ANdt 23 global ICoutput dtSpikes
24 MAP1_14(audio, 1/method.dt, method.nonlinCF,... 24 MAP1_14(audio, 1/method.dt, method.nonlinCF,...
25 MAPparamsName, AN_spikesOrProbability); 25 MAPparamsName, AN_spikesOrProbability);
26 26
27 if showPlotsAndDetails 27 if showPlotsAndDetails
28 options.printModelParameters=0; 28 options.printModelParameters=0;
29 options.showModelOutput=1; 29 options.showModelOutput=1;
30 options.printFiringRates=1; 30 options.printFiringRates=1;
31 options.showACF=0; 31 options.showACF=0;
32 options.showEfferent=1; 32 options.showEfferent=0;
33 UTIL_showMAP(options) 33 UTIL_showMAP(options)
34 end 34 end
35 35
36 % No response, probably caused by hitting 'stop' button 36 % No response, probably caused by hitting 'stop' button
37 if isempty(ICoutput), return, end 37 if isempty(ICoutput), return, end
39 % MacGregor response is the sum total of all final stage spiking 39 % MacGregor response is the sum total of all final stage spiking
40 MacGregorResponse= sum(ICoutput,1); % use IC 40 MacGregorResponse= sum(ICoutput,1); % use IC
41 41
42 % ---------------------------------------------------------- end model run 42 % ---------------------------------------------------------- end model run
43 43
44 dt=ANdt; 44 dt=dtSpikes;
45 time=dt:dt:dt*length(MacGregorResponse); 45 time=dt:dt:dt*length(MacGregorResponse);
46 46
47 % group delay on unit response 47 % group delay on unit response
48 MacGonsetDelay= 0.004; 48 MacGonsetDelay= 0.004;
49 MacGoffsetDelay= 0.022; 49 MacGoffsetDelay= 0.022;