[Eeglablist] Compiling EEGlab code; minimum set of M-files?; cold start config files ?

Kevin Buckley kevin.buckley.ecs.vuw.ac.nz at gmail.com
Thu Sep 6 22:21:06 PDT 2012


Hi there,

I'm looking at getting a researcher here access to a machine with a
bit more memory than
they currently have available, so as to run some codes that use EEGlab.

I was hoping that it might be possible to compile their M-files aganst
the EEGlab routines
so that they can run some of their codes outside of an interactive
MATLAB session altogether
and a brief trawl of this list's archives suggests that this might be
possible, hence me joining
the list and posting a more directed question.

I worked my way through a tutorial and now have the following code,
that I can run
inside of an interactive MATLAB session as a "first go", against the
example data
set you provide.

----8<----------8<----------8<----------8<----------8<----------8<------
function main_kevin(infile)
if (~isdeployed)
addpath('/opt/MATLAB/local/eeglab10_2_5_8b')
end
EEG = pop_loadset('filename', 'S1_EEG.set', 'filepath', infile)
EEG=pop_chanedit(EEG,'lookup',
'/opt/MATLAB/local/eeglab10_2_5_8b/plugins/dipfit2.2/standard_BESA/standard-10-5-cap385.elp')
EEG.setname='S1_Chan';
EEG=pop_saveset(EEG, 'filename', 'S1_Chan.set');
end
----8<----------8<----------8<----------8<----------8<----------8<------

I can also compile this, but when I come to run it I get told that I'm
missing some functions
or variables (no real surprise) and so add some more EEGlab M-files
into the compilation.

I am currently at the stage of being told that

----8<----------8<----------8<----------8<----------8<----------8<------
...
Cannot find option file /home/kevin/.mcrCache7.17/eeg_optionsbackup.txt
Cannot find option file /home/kevin/.mcrCache7.17/eeg_options.txt

ans =

Undefined function or variable 'option_savetwofiles'.

Warning: could not access the local eeg_options file
...
> In eeglab>eeg_mainfig at 934
  In eeglab at 357
  In main_kevin at 5
Cannot find option file /home/kevin/.mcrCache7.17/eeg_optionsbackup.txt
Cannot find option file /home/kevin/.mcrCache7.17/eeg_options.txt

ans =

Undefined function or variable 'option_savetwofiles'.

Warning: could not access the local eeg_options file
Undefined function or variable 'option_chat'.

Error in eeglab>eeg_mainfig (line 949)

Error in eeglab (line 357)

Error in main_kevin (line 5)

MATLAB:UndefinedFunction

----8<----------8<----------8<----------8<----------8<----------8<------

but I can't see where to set that variable ahead of the eeglab setup
call, nor can I see how I might
create such a file to use as a "cold start".

So, two questions.

1) Is there a known minimum set of EEGlab M-files, that one has to add
into a compiled MATLAB
application, listed anywhere ?

2) Are there any example EEGlab configuration files that one can use
as an external driver just
to get something going ?


Kevin M. Buckley

School of Engineering and Computer Science
Victoria University of Wellington
New Zealand



More information about the eeglablist mailing list