Markus Plank
unread,Feb 22, 2011, 6:27:12 PM2/22/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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