Cannot start eeglab - The file 'C:\EEGLab\eeglab_current\eeglab13_4_4b\eeglab.m' could not be cleared because it contains MATLAB code that is currently executing.
7 views (last 30 days)
Show older comments
Hi, sorry if this already have been asked and answered.
I just installed the student version of MATLAB R2015b and it is running. I downloaded EEGLAB v13.4.4b and unziped to a folder on c:. The dicription how to run eeglab under matlab (EEGLAB-Tutorial) is quite old so I just browsed to the folder where the eeglab-file is at and doubbleclicked it. Then I startet it by pressing the play button in MATLAB and it started to execute. But it is not running, I get this errormessage instead:
>> eeglab
eeglab: options file is C:\Users\admin\eeg_options.m
EEGLAB: adding "Biosig" to the path; subfolders (if any) might be missing from the path
EEGLAB: adding "dipfit" v2.3 (see >> help eegplugin_dipfit)
EEGLAB: adding "firfilt" v1.6.1 (see >> help eegplugin_firfilt)
Warning: The file 'C:\EEGLab\eeglab_current\eeglab13_4_4b\eeglab.m' could not be cleared because it
contains MATLAB code that is currently executing.
> In eeglab>updatemenu (line 1398)
In eeglab (line 350)
In eeglab (line 1046)
If I browse to the folder and type "eeglab" into the command window I get the same error message (3 times).
What have I done wrong? Are you supporting problems with EEGLAB at all?
Sorry for my bad English and thank you in advance.
Marcus
0 Comments
Answers (4)
Walter Roberson
on 11 Oct 2015
Somewhere in the updatemenu function of eeglab, near line 1398, something is calling "clear", probably "clear all". It might be a fault in the EEGLAB code, or possibly you accidentally have your own file named the same thing as one of the standard MATLAB routines and that is interfering with the execution.
You should open the source code for eeglab and put a breakpoint at line 1398 and execute to that point. Then use the debugger to single step until you find the "clear" that is being done, and figure out whether it is in the source of EEGLAB or if it is in one of your files.
EEGLAB requires registration to download, so I have not downloaded it to check the source. I do not have a "research area" and my use of the code would be for debugging it, not for the "neuroimaging research" that it is designed for, so it is not clear that I am eligible to use the code.
2 Comments
Steven Lord
on 11 Oct 2015
EEGLAB is not a MathWorks product. You should contact the authors, check their documentation, or post to the mailing list they have on their website for help determining why this error occurs and how to avoid it.
Jussi Jaatinen
on 15 Oct 2015
Edited: Jussi Jaatinen
on 15 Oct 2015
I added a % sign to the beginning of the line 1398 and voila! No error message any more.
I also fixed eeglab.m code with Matlab editor and now it seems to be ok.
I have exactly the same versions of SW´s.
Try also ERPLAB. It works well with 2015b and EEGLAB.
Jussi
2 Comments
Yana Radchenko
on 4 Feb 2016
Edited: Walter Roberson
on 4 Feb 2016
Had the same problem. And I am not Matlab professional, but that was helpful.
Added %clear functions;
The only catch for beginners it can be different lines.
Thanks!
0 Comments
See Also
Categories
Find more on Entering Commands in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!