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.

Statistics Download as Zip
| Branch: | Revision:

root / multithreshold 1.46 / paradigms / paradigm_GOM.m @ 31:c54a34161e4a

History | View | Annotate | Download (1.52 KB)

1
function paradigm_GOM(handles)
2
global stimulusParameters experiment betweenRuns
3

    
4
paradigm_training(handles) % default
5

    
6
stimulusParameters.WRVname='maskerLevel';
7
stimulusParameters.WRVstartValues=20;
8
stimulusParameters.WRVsteps= [-10 -2];
9
stimulusParameters.WRVlimits=[-30 110];
10

    
11
% target variable: slope=1, start going down.
12
withinRuns.direction='up';
13
experiment.psyFunSlope=-1;
14

    
15
betweenRuns.variableName1='targetLevel';
16
betweenRuns.variableList1=25: 5: 70;
17
betweenRuns.variableName2='maskerRelativeFrequency';
18
betweenRuns.variableList2=[1 0.5];
19

    
20
experiment.maskerInUse=1;
21
stimulusParameters.maskerType='tone';
22
stimulusParameters.maskerPhase='sin';
23
stimulusParameters.maskerDuration=0.104;
24
stimulusParameters.maskerLevel=stimulusParameters.WRVstartValues(1);
25
stimulusParameters.maskerRelativeFrequency=betweenRuns.variableList2;
26

    
27
stimulusParameters.gapDuration=0.0002;
28

    
29
stimulusParameters.targetType='tone';
30
stimulusParameters.targetPhase='sin';
31
% 		retain current target frequency
32
x=str2num(get(handles.edittargetFrequency,'string'));
33
stimulusParameters.targetFrequency=x(1);
34

    
35
stimulusParameters.targetDuration=0.004;
36
stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1);
37

    
38
stimulusParameters.rampDuration=0.002;
39

    
40
% instructions to user
41
%   single interval up/down no cue
42
stimulusParameters.instructions{1}= [{'YES if you hear the tone clearly'}, { }, { 'NO if not (or you are uncertain'}];
43
%   single interval up/down with cue
44
stimulusParameters.instructions{2}= [{'count the tones you hear clearly'}, { }, { 'ignore indistinct tones'}];
45