diff userProgramsASRforDummies/MAPwrap.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
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/userProgramsASRforDummies/MAPwrap.m	Mon Nov 28 13:34:28 2011 +0000
@@ -0,0 +1,14 @@
+% This function wraps up whatever version of MAP I want to call. It is
+% implemented partly because I want to avoid messing with jobject too much
+% and mostly because I dont want to declare globals in my class.
+
+function [myANprobRateOutput, mydt, myBF] = MAPwrap(stimulus, sampleRate, BFlist, participant, AN_spikesOrProbability, paramChanges)
+
+
+global ANprobRateOutput  dt BFlist
+% disp(20*log10(sqrt(mean(stimulus.^2))/20e-6))
+MAP1_14(stimulus, sampleRate, BFlist, participant, AN_spikesOrProbability, paramChanges);
+% disp(20*log10(sqrt(mean(stimulus.^2))/20e-6))
+myANprobRateOutput   = ANprobRateOutput;
+mydt = dt;
+myBF = BFlist;