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.