I'm working with EMG data in EEGLAB (v2022.0)/MATLAB (R2022a) - I've filtered and rectified the data and now I'd like to express the mean amplitude of 10s epochs as a percentage of the mean amplitude of a baseline epoch of 2s. However, I'm having difficulty figuring out how to extract these together.
I'm extracting the periods of interest during the task using EMG = pop_epoch(EMG, {'1' '2' '3' '4' '5' '6'}, [0 10]);
But I'd like to also extract the 2000ms before marker '99' to use as baseline (i.e., EMG = pop_epoch(EMG, {'99'}, [-2 0])
).
Is there a way of doing this all at once so that both the baseline and task epochs are retained together?