This is matlab code to compute PLV in EEG using correlated component analysis, specified for analyses presented in the project "Sharing happy stories increases interpersonal closeness: Interpersonal brain synchronization as a neural indicator".
You will need EEGLAB and EEG data collected from NeuroScan to run Step1_preprocess_demo.m.
You will need following files to run Step2_PLV_demo.m:
eeg_lab file and Neuroscan64.loc -- Neuroscan location file
Note:Full data and codes concerning this study can be available from the authors upon request.