EMG data set time-frequency component using EEGLAB in MATLAB ?

19 views (last 30 days)
Is there any way to analyze EMG data set time-frequency component using EEGLAB TOOLBOX in MATLAB ?

Answers (1)

Prasanna
Prasanna on 3 Oct 2024
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.
% Load data into EEGLAB structure
EEG = pop_importdata('dataformat', 'array', 'nbchan', 1, 'data', 'your_emg_data', 'srate', 1000, 'pnts', 0, 'xmin', 0);
% Save the data set
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.
% Perform time-frequency analysis
[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!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!