Mercurial > hg > map
comparison 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 |
comparison
equal
deleted
inserted
replaced
28:02aa9826efe0 | 29:b51bf546ca3f |
---|---|
1347 | 1347 |
1348 % initiates run and plays first stimulus and it returns | 1348 % initiates run and plays first stimulus and it returns |
1349 % without waiting for button press | 1349 % without waiting for button press |
1350 startNewRun(handles) | 1350 startNewRun(handles) |
1351 | 1351 |
1352 % show sample Rate on GUI; it must be set in MAPparams | 1352 % show sample Rate on GUI; it must be set in MAPparams ##?? |
1353 set(expGUIhandles.textsampleRate,'string',... | 1353 set(expGUIhandles.textsampleRate,'string',... |
1354 num2str(stimulusParameters.sampleRate)) | 1354 num2str(stimulusParameters.sampleRate)) |
1355 | 1355 |
1356 if experiment.singleShot | 1356 if experiment.singleShot % ##?? |
1357 AN_IHCsynapseParams.plotSynapseContents=1; | 1357 AN_IHCsynapseParams.plotSynapseContents=1; |
1358 else | 1358 else |
1359 AN_IHCsynapseParams.plotSynapseContents=0; | 1359 AN_IHCsynapseParams.plotSynapseContents=0; |
1360 end | 1360 end |
1361 | 1361 |
1422 | 1422 |
1423 % -------------------------------------------------------MAPmodel | 1423 % -------------------------------------------------------MAPmodel |
1424 function [modelResponse, MacGregorResponse]=MAPmodel | 1424 function [modelResponse, MacGregorResponse]=MAPmodel |
1425 | 1425 |
1426 global experiment stimulusParameters audio withinRuns | 1426 global experiment stimulusParameters audio withinRuns |
1427 global outerMiddleEarParams DRNLParams AN_IHCsynapseParams | 1427 % global outerMiddleEarParams DRNLParams AN_IHCsynapseParams |
1428 global ICoutput ANdt dt savedBFlist ANprobRateOutput expGUIhandles | |
1429 global paramChanges | |
1428 | 1430 |
1429 savePath=path; | 1431 savePath=path; |
1430 addpath(['..' filesep 'MAP'], ['..' filesep 'utilities']) | 1432 addpath(['..' filesep 'MAP'], ['..' filesep 'utilities']) |
1431 modelResponse=[]; | 1433 modelResponse=[]; |
1432 MacGregorResponse=[]; | 1434 MacGregorResponse=[]; |
1442 end | 1444 end |
1443 | 1445 |
1444 % ---------------------------------------------- run Model | 1446 % ---------------------------------------------- run Model |
1445 MAPparamsName=experiment.name; | 1447 MAPparamsName=experiment.name; |
1446 showPlotsAndDetails=experiment.MAPplot; | 1448 showPlotsAndDetails=experiment.MAPplot; |
1449 | |
1450 % important buried constant ##?? | |
1447 AN_spikesOrProbability='spikes'; | 1451 AN_spikesOrProbability='spikes'; |
1448 AN_spikesOrProbability='probability'; | 1452 AN_spikesOrProbability='probability'; |
1449 | 1453 |
1450 % [response, method]=MAPsequenceSeg(audio, method, 1:8); | 1454 % [response, method]=MAPsequenceSeg(audio, method, 1:8); |
1451 global ICoutput ANdt dt savedBFlist ANprobRateOutput expGUIhandles | |
1452 global stimulusParameters experiment | |
1453 | 1455 |
1454 if sum(strcmp(experiment.ear,{'MAPmodelMultiCh', 'MAPmodelListen'})) | 1456 if sum(strcmp(experiment.ear,{'MAPmodelMultiCh', 'MAPmodelListen'})) |
1455 % use BFlist specified in MAPparams file | 1457 % use BFlist specified in MAPparams file |
1456 BFlist= -1; | 1458 BFlist= -1; |
1457 else | 1459 else |
1458 BFlist=stimulusParameters.targetFrequency; | 1460 BFlist=stimulusParameters.targetFrequency; |
1459 end | 1461 end |
1460 paramChanges=get(expGUIhandles.editparamChanges,'string'); | 1462 paramChanges=get(expGUIhandles.editparamChanges,'string'); |
1461 eval(paramChanges) | 1463 % convert from string to a cell array |
1464 eval(paramChanges); | |
1462 | 1465 |
1463 MAP1_14(audio, stimulusParameters.sampleRate, BFlist,... | 1466 MAP1_14(audio, stimulusParameters.sampleRate, BFlist,... |
1464 MAPparamsName, AN_spikesOrProbability, paramChanges); | 1467 MAPparamsName, AN_spikesOrProbability, paramChanges); |
1465 | 1468 |
1466 if showPlotsAndDetails | 1469 if showPlotsAndDetails |