Revision 26:b03ef38fe497 testPrograms/demoTwisterSpikes.m
| testPrograms/demoTwisterSpikes.m | ||
|---|---|---|
| 45 | 45 |
showMapOptions.printFiringRates=1; |
| 46 | 46 |
showMapOptions.showACF=0; |
| 47 | 47 |
showMapOptions.showEfferent=0; |
| 48 |
|
|
| 48 |
showMapOptions.surfSpikes=1; |
|
| 49 |
|
|
| 49 | 50 |
%% Generate stimuli |
| 50 |
|
|
| 51 | 51 |
switch signalType |
| 52 | 52 |
case 'tones' |
| 53 | 53 |
inputSignal=createMultiTone(sampleRate, toneFrequency, ... |
| ... | ... | |
| 70 | 70 |
disp(['Signal duration= ' num2str(length(inputSignal)/sampleRate)]) |
| 71 | 71 |
disp([num2str(numChannels) ' channel model']) |
| 72 | 72 |
disp('Computing ...')
|
| 73 |
|
|
| 73 | 74 |
MAP1_14(inputSignal, sampleRate, BFlist, ... |
| 74 | 75 |
MAPparamsName, AN_spikesOrProbability, paramChanges); |
| 75 |
toc |
|
| 76 |
|
|
| 76 | 77 |
|
| 77 | 78 |
% the model run is now complete. Now display the results |
| 78 |
UTIL_showMAP(showMapOptions) |
|
| 79 |
UTIL_showMAP(showMapOptions, paramChanges)
|
|
| 79 | 80 |
|
| 80 | 81 |
toc |
| 81 | 82 |
path(restorePath) |
| 82 | 83 |
|
| 83 |
|
|
| 84 | 84 |
function inputSignal=createMultiTone(sampleRate, toneFrequency, ... |
| 85 | 85 |
leveldBSPL, duration, rampDuration) |
| 86 | 86 |
% Create pure tone stimulus |
Also available in: Unified diff