This repository contains various matlab functions, which might be useful for research in psychology, neurosciences etc.
- addEEGEvents.m was originally written in order to select only stimulus-locked events in an EEG experiment followed by a correct response but it can catch any specified event following a target event. To check for correctness, the stimulus-locked event must be followed immediately by a trigger coding the correctness of the response to the stimulus (i.e. no other EEG events in between).
- getVoiceResponse.m was written to capture voice responses in a simple psychological experiment in order to measure the response latency for subsequent analysis of reaction time (RT) using a microphone. Note that the function works fine for within-subject designs in which the exakt voice onset is not but the latency differences between conditions are of interest.
- soundCheck.m performs a sound check to find the right threshold level for the function getVoiceResponse.m. The function produces a GUI like the following to find an appropriate trigger threshold. I recommend to save the .wav files because one can reanalyze the data then.
- slideScale.m This funtion draws a slide scale on a PSYCHTOOLOX 3 screen and returns the position of the slider in spaced between -100 and 100 or 0 to 100 as well as the rection time and if an answer was given. You can test the function by running the script test_slideScale.m.
Except when otherwise stated in writing the copyright holders and/or other parties provide the programs 'as is' without warranty of any kind, expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose.