To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
The primary repository for this project is hosted at git://github.com/rmeddis/MAP.git .
This repository is a read-only copy which is updated automatically every hour.
root / testPrograms / repeatTester.m @ 35:25d53244d5c8
History | View | Annotate | Download (2.01 KB)
| 1 | 35:25d53244d5c8 | rmeddis | restorePath=path; |
|---|---|---|---|
| 2 | addpath (['..' filesep 'MAP'], ['..' filesep 'wavFileStore'], ... |
||
| 3 | ['..' filesep 'utilities']) |
||
| 4 | |||
| 5 | global OMEParams DRNLParams IHC_cilia_RPParams IHCpreSynapseParams |
||
| 6 | global AN_IHCsynapseParams MacGregorParams MacGregorMultiParams |
||
| 7 | global dt ANdt savedBFlist saveAN_spikesOrProbability saveMAPparamsName... |
||
| 8 | savedInputSignal OMEextEarPressure TMoutput OMEoutput ARattenuation ... |
||
| 9 | DRNLoutput IHC_cilia_output IHCrestingCiliaCond IHCrestingV... |
||
| 10 | IHCoutput ANprobRateOutput ANoutput savePavailable ANtauCas ... |
||
| 11 | CNtauGk CNoutput ICoutput ICmembraneOutput ICfiberTypeRates ... |
||
| 12 | MOCattenuation |
||
| 13 | |||
| 14 | signalCharacteristics.type='tones'; |
||
| 15 | signalCharacteristicssignalCharacteristics.sampleRate=50000; |
||
| 16 | signalCharacteristics.duration= 1; |
||
| 17 | signalCharacteristics.rampDuration=0.05; |
||
| 18 | signalCharacteristics.beginSilence=0.05; |
||
| 19 | signalCharacteristics.endSilence=0.05; |
||
| 20 | signalCharacteristics.toneFrequency=1000; |
||
| 21 | signalCharacteristics.leveldBSPL=50; |
||
| 22 | |||
| 23 | showMapOptions.printModelParameters=0; % prints all parameters |
||
| 24 | showMapOptions.showModelOutput=0; % plot of all stages |
||
| 25 | showMapOptions.printFiringRates=0; % prints stage activity levels |
||
| 26 | showMapOptions.showACF=0; % shows SACF (probability only) |
||
| 27 | showMapOptions.showEfferent=0; % tracks of AR and MOC |
||
| 28 | showMapOptions.surfProbability=0; % 2D plot of HSR response |
||
| 29 | showMapOptions.surfSpikes=0; % 2D plot of spikes histogram |
||
| 30 | showMapOptions.ICrates=0; % IC rates by CNtauGk |
||
| 31 | |||
| 32 | tic |
||
| 33 | fprintf('\n')
|
||
| 34 | disp('Computing ...')
|
||
| 35 | |||
| 36 | levels=80:10:100; |
||
| 37 | figure(10), clf |
||
| 38 | |||
| 39 | for level=levels |
||
| 40 | signalCharacteristics.leveldBSPL=level; |
||
| 41 | % MAPrunner(MAPparamsName, AN_spikesOrProbability, ... |
||
| 42 | % signalCharacteristics, paramChanges, showMapOptions) |
||
| 43 | MAPrunner('Normal', 'spikes', ...
|
||
| 44 | signalCharacteristics, {}, showMapOptions)
|
||
| 45 | ARmin=min(ARattenuation); |
||
| 46 | disp([num2str(level) ':' num2str(ARmin)]) |
||
| 47 | time=dt:dt:dt*length(ARattenuation); |
||
| 48 | hold on, plot(time,(1-ARattenuation)/(1-min(ARattenuation))) |
||
| 49 | pause(0.1) |
||
| 50 | end |
||
| 51 | |||
| 52 | path(restorePath) |