Have a function to merge multiple streams in eeg_load_xdf and use the eeg_mergechannels function on the clock times (in streams{1}.info.clock_offsets.offset). For each stream add the time and offset (in seconds) and compute the linear regression between streams (create an event table using these clock times and use eeg_mergechannels to align the streams).
Have a function to merge multiple streams in eeg_load_xdf and use the eeg_mergechannels function on the clock times (in streams{1}.info.clock_offsets.offset). For each stream add the time and offset (in seconds) and compute the linear regression between streams (create an event table using these clock times and use eeg_mergechannels to align the streams).
@neuromechanist