function StateSwitch_addSurroundingCues_words(expInfo, screenInfo, indRun, indBlock, indTrial) % adds the surrounding cues for the next flip % expInfo.Cues = {'Tier?'; 'einsilbig?'; 'gerade?'; 'H?'}; for indAtt = 1:4 switch indAtt case 1 smallIm = [0 0 screenInfo.screenRect(3)/2 screenInfo.screenRect(4)/2]; case 2 smallIm = [screenInfo.screenRect(3)/2 0 screenInfo.screenRect(3) screenInfo.screenRect(4)/2]; case 3 smallIm = [0 screenInfo.screenRect(4)/2 screenInfo.screenRect(3)/2 screenInfo.screenRect(4)]; case 4 smallIm = [screenInfo.screenRect(3)/2 screenInfo.screenRect(4)/2 screenInfo.screenRect(3) screenInfo.screenRect(4)]; end if ismember(indAtt, expInfo.AttCuesRun{indRun}{indBlock,indTrial}) oldTextSize = Screen('TextSize', screenInfo.curWindow, 30); DrawFormattedText(screenInfo.curWindow, expInfo.Cues{indAtt}, 'center', 'center', [], [], [],[],[],[],smallIm); Screen('TextSize', screenInfo.curWindow, oldTextSize); clear oldTextSize; end end end