Export of EEG data from EEGLAB to Cartool

694 views
Skip to first unread message

Markus Plank

unread,
Feb 22, 2011, 6:27:12 PM2/22/11
to car...@googlegroups.com
Dear Cartool Community,

After posting the code for exporting electrode locations from the MATLAB toolbox EEGLAB to Cartool (see post from 2011-01-25) I received a couple of requests on how to export the actual EEG data (.set, .fdt) to Cartool. This can be achieved by exporting the data as .BDF file. You can achieve this via the GUI (file --> export), or with the script below:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MPlank - 2011-02-22
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Export EEG data to .bdf file

subj_name = the_name_of_the_subject
pop_writeeeg(EEG, [subject_name '.bdf'], 'TYPE','BDF');

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%


The exported files are exported to the current working directory of MATLAB. Since they can be quite large (> 4 GB), you have to make sure that the data is exported to a hard drive with a NTFS file format. If it's FAT32, the file export stops whenever the file size exceeds 4 GB.

BDF files can be easily read with Cartool.

Hope this helps!

Best,
Markus

finch harold

unread,
May 19, 2018, 3:26:00 AM5/19/18
to Cartool Community
Hi, Markus

Thanks for your suggestions~

However, When I read the bdf data converted from EEGLAB to the Cartool software, no epochs of single trials were obtained. It looks like the triggers were lost. Do you have any idea on this? Looking forward your help~

Thank you again~

Best

Finch

在 2011年2月23日星期三 UTC+8上午7:27:12,Markus Plank写道:
Reply all
Reply to author
Forward
0 new messages