Hi Mano,
To analyse the time-frequency components of an EMG dataset using the EEGLAB toolbox, you can con preprocess your data into an EEGLAB recognized format, then perform the time-frequency analysis using the ‘pop_newtimef’ and the ‘newtimef’ functions in EEGLAB. The steps to perform time-frequency analysis on EMG data is as follows:
- Convert EMG data to EEGLAB recognized formats like ‘.set’. You can use the ‘pop_importdata’ and the ‘pop_saveset’ commands to do the same.
EEG = pop_importdata('dataformat', 'array', 'nbchan', 1, 'data', 'your_emg_data', 'srate', 1000, 'pnts', 0, 'xmin', 0);
EEG = pop_saveset(EEG, 'filename', 'emg_data.set');
- Once EMG data filtering, artifact removal and epoching is done, you can use EEGLAB’s time frequency analysis function ‘newtimef’ to do the same by adjusting the parameters as required.
[ersp, itc, powbase, times, freqs, erspboot, itcboot] = newtimef(EEG.data, EEG.pnts, [EEG.xmin EEG.xmax]*1000, EEG.srate, [3 0.5], 'plotersp', 'on', 'plotitc', 'off');
For more information on time-frequency analysis, you can refer the following documentations:
Hope this helps!