How to import .EEG or text or excel file to EEGlab

104 views (last 30 days)
Hi all I've 1-hour EEG data with a sampling frequency 291hz.I've installed EEGlab v14.1.1 version and tried to load my data files of '.EEG file','text' and 'excel'formats, but none of them are loading to EEGlab.It's showing the following error. Please help me to slove this issue since I'm new to this EEGlab software
  3 Comments
RITIKA JAIN
RITIKA JAIN on 25 Dec 2020
Hi, what is the EEG system you used for this data acquisition? Based on that there are import extensions avaliable in EEGLAB that you can install and then import your data. It should work provided the EEG system is listed there.
Hope it helps!
Thanks

Sign in to comment.

Answers (6)

Walter Roberson
Walter Roberson on 26 Nov 2017
  2 Comments
Ceethal Kottakali Piyus
Ceethal Kottakali Piyus on 27 Nov 2017
Thanks, Walter Roberson for answering. Can you help me to fill this attached file or can you explain to me what all are those parameters I'm not familiar with them
Walter Roberson
Walter Roberson on 27 Nov 2017
Each .EEG file has data for multiple times and multiple electrodes. That form is allowing you to chose to extract only the part of the information you are interested in.
I am not familiar with some of those terms; I have not done EEG work myself.

Sign in to comment.


Hongshuai Sun
Hongshuai Sun on 28 Oct 2019
I am a novice in eeg signal processing. At present, I have a .EEG file. Did you successfully read this kind of file in MATLAB? This is my E-mail address, looking forward to communicating with you.
sunhongshuai@stu.xjtu.edu.cn

Alessandra Caporale
Alessandra Caporale on 3 Aug 2020
Good morning,
I have the same issue. Has anybody understood how to correctly import an .eeg file in EEGlab? I downloaded a specific plugin, nevertheless the info extracted from the .eeg file do not seem to make sense.
Thank you in advance,
Alessandra
  2 Comments
Walter Roberson
Walter Roberson on 5 Aug 2020
https://github.com/sccn/neuroscanio appears to be the plug-in needed for Neuroscan .eeg files for EEGLab .
I am not clear as to whether those files are a different format than BrainVision .eeg files; https://www.researchgate.net/post/Wondering_how_to_import_Brain_Vision_Data_into_EEGlab
Alessandra Caporale
Alessandra Caporale on 5 Aug 2020
Thank you for your suggestion!
I managed to import the .eeg file using: FILE > IMPORT DATA > USING THE BIOSIG INTERFACE.

Sign in to comment.


Raul Huarote
Raul Huarote on 23 Feb 2022
Saludos . Agradezco me puedan apoyar. Estoy en eeglab y deseo abrir un archivo .eeg, y me aparece una ventana "Load an EEG dataset" con 5 cajas de texto, me podrian decir que valores o que rango le debo colocar, para visualizar e iniciar a trabajar. Gracias de antemano por su respuesta.

nuradrina
nuradrina on 10 May 2023
Hi, I've EEG data in excel format since it automatically generated format as I'm using EMOTIV EPOC-X headset. My sampling rate is 128Hz and been trying to load my data into EEGlab but it keep showing error. Please help me how to solve this issue since I'm still a student and new to EEGlab software.

Umar
Umar on 2 Sep 2024
Edited: Walter Roberson on 3 Sep 2024
Hi @Ceethal Kottakali Piyus,
After going through tutorials listed on the weblinks below.
Here is how to resolve the issue of loading your EEG data into EEGLAB,
*File Format Compatibility*
Make sure that your data files are in a format that EEGLAB can recognize. While EEGLAB can read various formats, the most compatible are .set (EEGLAB's native format) and .fdt for raw data. The formats you mentioned (.EEG, text, and excel) may not be directly supported without preprocessing.
*Using the Correct Loading Function*
The function pop_loadset is typically used to load .set files. If your files are not in this format, they will need to be converted or imported from ASCII/float files or MATLAB arrays. For your specific file types, here’s how to proceed. For .EEG files: If your .EEG files are in a specific format (e.g., from a particular EEG system), check if there is a specific EEGLAB plugin available for that format.
For text or Excel files: You can import these by converting them to an ASCII format. Make sure that the data is organized such that the first row contains channel names and subsequent rows contain the corresponding data.
*Importing Data*
If you are starting from text or Excel files, use the following steps:
Convert your data: Save your Excel file as a .csv or plain text file, making sure the data is organized correctly. Use MATLAB commands to load the data:
mydata = load('your_file.txt'); % for ASCII files
% or
mydata = readtable('your_file.csv'); % for CSV files
Make sure the data matrix is in the correct format (channels x samples).
Import into EEGLAB: Use File → Import data→From ASCII/float file or From MATLAB array, depending on your data's current format.
If an error persists, check the MATLAB command window for specific error messages. This could provide insights into whether it's a data format issue or a problem with the EEGLAB installation itself. Also, please familiarize yourself with the EEGLAB documentation, which is highly detailed and can provide further guidance on data import. You can access it via the EEGLAB interface or by typing help pop_loadset in MATLAB. Hope this answers your question.

Categories

Find more on EEG/MEG/ECoG in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!