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 / userProgramsASRforDummies / MAPwrap.m @ 38:c2204b18f4a2
History | View | Annotate | Download (635 Bytes)
| 1 | 38:c2204b18f4a2 | rmeddis | % This function wraps up whatever version of MAP I want to call. It is |
|---|---|---|---|
| 2 | % implemented partly because I want to avoid messing with jobject too much |
||
| 3 | % and mostly because I dont want to declare globals in my class. |
||
| 4 | |||
| 5 | function [myANprobRateOutput, mydt, myBF] = MAPwrap(stimulus, sampleRate, BFlist, participant, AN_spikesOrProbability, paramChanges) |
||
| 6 | |||
| 7 | |||
| 8 | global ANprobRateOutput dt BFlist |
||
| 9 | % disp(20*log10(sqrt(mean(stimulus.^2))/20e-6)) |
||
| 10 | MAP1_14(stimulus, sampleRate, BFlist, participant, AN_spikesOrProbability, paramChanges); |
||
| 11 | % disp(20*log10(sqrt(mean(stimulus.^2))/20e-6)) |
||
| 12 | myANprobRateOutput = ANprobRateOutput; |
||
| 13 | mydt = dt; |
||
| 14 | myBF = BFlist; |