Borrar filtros
Borrar filtros

Error in pop_ loadset

18 visualizaciones (últimos 30 días)
oihtoyoshi_chameleon
oihtoyoshi_chameleon el 26 de Feb. de 2024
Respondida: Drishti el 16 de Ag. de 2024
I failed to load a set file by EEGLAB. The error message is "EEGLAB error in function pop_loadset() at line 155".
The code at line 155 is TMPVAR = load('-mat', filename). The set file is downloaded from openneuro and the file type is alias.
I cannot load all files downloaded from openneuro. Please tell me what causes this error and how to load set files downloaded from openneuro.

Respuestas (1)

Drishti
Drishti el 16 de Ag. de 2024
Hi Oihtoyoshi,
I recognize that you are encountering issue in loading the ‘.set’ file by EEGLAB in MATLAB using ‘pop_loadset’ function.
The possible work arounds to resolve the issue are:
  • Open the EEGLAB graphical user interface by typing eeglab in the MATLAB command window, select File->Load_existing_dataset then select the ‘.set’ file.
  • You can add the path of EEGLAB with ‘Add and subfolders’. Consider below given code snippet to add path.
% Specify the path to the EEGLAB folder
eeglabPath = 'C:\path\to\eeglab\';
% Add EEGLAB and all its subfolders to the MATLAB path
addpath(genpath(eeglabPath));
% Save the path for future MATLAB sessions (optional)
savepath;
% Now load the ‘.set’ file using ‘pop_loadset’.
  • Furthermore, absence of particular ‘.set’ file acts as a potential reason for the error. Verify whether the file exists; if it does not, proceed with loading the other files, which should resolve the issue.
For more information, you can refer to the following MATLAB answers which provides a method to proceed if a file is not present in the directory.
Hope it helps.

Categorías

Más información sobre Downloads en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by