top of page

How to Export an ECG Channel to a .txt File

  • Jun 3, 2023
  • 1 min read

Steps

  1. Open EEGLAB in MatLab (type “eeglab” in MatLab and hit enter)

  2. In EEGLAB, go to “file” → “import” → “using EEGLAB functions and plugins” → “import Phillips .mff file”

  3. Select the mff file of the ECG recording you want to import

  4. For trigger/event type select “code”

  5. Go to “plot” → “channel data (scroll)” and check to see what channel number corresponds to the ECG channel (usually channel 66). You should be looking for a QRS wave signal

  6. Go to “edit” → “select data” and enter the ECG channel number into “channel range”

  7. Save the new data set

  8. Confirm the right channels were removed by navigating to “plot” → “channel data (scroll)”

  9. Then go to “file” → “export” → “data and ica activity to text file”

  10. Make sure the only boxes checked are “transpose matrix (elec → cols)” and “use comma separator (csv) instead of tabs”. All other boxes should be unchecked.

  11. Enter the file name with a proper title (should end in .txt) and select the proper folder destination

  12. Wait until the file is finished uploading before closing MatLab

[Insert Video]

 
 

Related Posts

See All
HRV Analysis Methods

ECG analysis One method to obtain heart rate variability (HRV) data is through electrocardiogram (ECG) recordings. ECG recordings are...

 
 
Video Tutorials
Exporting Data from Qualtrics as SPSS and Excel
02:47
Exporting an ECG Channel to .txt in MatLab
03:34
Analyzing Data in Excel
09:15
Graphing in SPSS
06:03
Analyzing Data in SPSS
07:50
AcqKnowledge Tutorial - Part 2
06:48
bottom of page