Error in pop_ loadset

13 vues (au cours des 30 derniers jours)
oihtoyoshi_chameleon
oihtoyoshi_chameleon le 26 Fév 2024
Réponse apportée : Drishti le 16 Août 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.

Réponses (1)

Drishti
Drishti le 16 Août 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.

Catégories

En savoir plus sur Downloads dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by