This repository has some scripts for running binocular rivalry experiments.
You can run them in python (much nicer) or matlab (possibly has better timing...).
You should be able to install everything required by running pip install -r requirements.txt
.
If that doesn't work or you want to try using conda, just check out its contents and install all mentioned there :)
It's super hard to know which of matlabs various toolboxes functions come from. I would imagine the image processing toolbox is required. You also need to install psychtoolbox.
You will also need the visual angle conversion scripts here.
There are three experiments:
continuous-rivalry
is a standard ~40s rivalry experimenttrial-based-rivalry
is for testing binocular rivalry on lots of small (6s) trialseeg-rivalry
is for flickering the stimuli to track them via the evoked frequency in EEG data