This repository provides the code, as well as the data to the paper "Gaze behavior in response to affect during natural social interactions" by Antonia Vehlen, Artem V. Belopolsky & Gregor Domes currently in submission at Frontiers in Psychology.
The code with helpful comments can be viewed here: https://www.uni-trier.de/fileadmin/fb1/prof/PSB/TKP/Dokumente_fuer_Studis/SPLOT.html
To run the code in Matlab just download the corresponding script (SPLOT.m) from this repository. To replicate the results of the paper or to view the data, it is best to download the entire folder (SPLOT).