Mercurial > hg > map
view multithreshold 1.46/paradigms/paradigm_GOM.m @ 29:b51bf546ca3f
physiologyProb
author | Ray Meddis <rmeddis@essex.ac.uk> |
---|---|
date | Fri, 08 Jul 2011 13:48:27 +0100 |
parents | f233164f4c86 |
children | 1a502830d462 |
line wrap: on
line source
function paradigm_GOM(handles) global stimulusParameters experiment betweenRuns paradigm_training(handles) % default stimulusParameters.WRVname='maskerLevel'; stimulusParameters.WRVstartValues=20; stimulusParameters.WRVsteps= [-10 -2]; stimulusParameters.WRVlimits=[-30 110]; % target variable: slope=1, start going down. withinRuns.direction='up'; experiment.psyFunSlope=-1; betweenRuns.variableName1='targetLevel'; betweenRuns.variableList1=25: 5: 70; betweenRuns.variableName2='maskerRelativeFrequency'; betweenRuns.variableList2=[1 0.5]; betweenRuns.randomizeSequence=1; % 'random sequence' stimulusParameters.maskerType='tone'; stimulusParameters.maskerPhase='sin'; stimulusParameters.maskerDuration=0.104; stimulusParameters.maskerLevel=stimulusParameters.WRVstartValues(1); stimulusParameters.maskerRelativeFrequency=betweenRuns.variableList2; stimulusParameters.gapDuration=0.0002; stimulusParameters.targetType='tone'; stimulusParameters.targetPhase='sin'; % retain current target frequency x=str2num(get(handles.edittargetFrequency,'string')); stimulusParameters.targetFrequency=x(1); stimulusParameters.targetDuration=0.004; stimulusParameters.targetLevel=stimulusParameters.WRVstartValues(1); stimulusParameters.rampDuration=0.002; % instructions to user % single interval up/down no cue stimulusParameters.instructions{1}= [{'YES if you hear the tone clearly'}, { }, { 'NO if not (or you are uncertain'}]; % single interval up/down with cue stimulusParameters.instructions{2}= [{'count the tones you hear clearly'}, { }, { 'ignore indistinct tones'}];