diff multithreshold 1.46/subjGUI_MT.m @ 29:b51bf546ca3f

physiologyProb
author Ray Meddis <rmeddis@essex.ac.uk>
date Fri, 08 Jul 2011 13:48:27 +0100
parents 02aa9826efe0
children 1a502830d462
line wrap: on
line diff
--- a/multithreshold 1.46/subjGUI_MT.m	Fri Jul 01 12:59:47 2011 +0100
+++ b/multithreshold 1.46/subjGUI_MT.m	Fri Jul 08 13:48:27 2011 +0100
@@ -1349,11 +1349,11 @@
     %  without waiting for button press
     startNewRun(handles)
 
-    % show sample Rate on GUI; it must be set in MAPparams
+    % show sample Rate on GUI; it must be set in MAPparams ##??
     set(expGUIhandles.textsampleRate,'string',...
         num2str(stimulusParameters.sampleRate))
 
-    if experiment.singleShot
+    if experiment.singleShot % ##??
         AN_IHCsynapseParams.plotSynapseContents=1;
     else
         AN_IHCsynapseParams.plotSynapseContents=0;
@@ -1424,7 +1424,9 @@
 function [modelResponse, MacGregorResponse]=MAPmodel
 
 global experiment stimulusParameters audio withinRuns
-global outerMiddleEarParams DRNLParams AN_IHCsynapseParams
+% global outerMiddleEarParams DRNLParams AN_IHCsynapseParams
+global ICoutput ANdt dt savedBFlist ANprobRateOutput expGUIhandles
+global paramChanges
 
 savePath=path;
 addpath(['..' filesep 'MAP'], ['..' filesep 'utilities'])
@@ -1444,12 +1446,12 @@
 % ---------------------------------------------- run Model
 MAPparamsName=experiment.name;
 showPlotsAndDetails=experiment.MAPplot;
+
+% important buried constant ##??
 AN_spikesOrProbability='spikes';
 AN_spikesOrProbability='probability';
 
 % [response, method]=MAPsequenceSeg(audio, method, 1:8);
-global ICoutput ANdt dt savedBFlist ANprobRateOutput expGUIhandles
-global stimulusParameters experiment
 
 if sum(strcmp(experiment.ear,{'MAPmodelMultiCh', 'MAPmodelListen'}))
     % use BFlist specified in MAPparams file
@@ -1458,7 +1460,8 @@
     BFlist=stimulusParameters.targetFrequency;
 end
 paramChanges=get(expGUIhandles.editparamChanges,'string');
-eval(paramChanges)
+% convert from string to a cell array
+eval(paramChanges);
 
 MAP1_14(audio, stimulusParameters.sampleRate, BFlist,...
     MAPparamsName, AN_spikesOrProbability, paramChanges);