<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p></p>
<div>Hello,<br>
<br>
I have been using EEGLAB for some time for preprocessing and analysing EEG data from mobile headsets, I would now like to make use of the Matlab Compiler to produce a standalone executable of my preprocessing script. I have been compiling and installing a program,
 attempting to run it and finding which functions or variables are missing, then looking through the EEGLAB files to see what needs included. I am currently having difficulty ensuring all the dependencies for eeg_checkset() are covered, below is the error output
 when I try to load a .set file. The only mention of the undefined options variables I can find within EEGLAB are
<i>functions/adminfunc/eeg_options.m</i>, <i>functions/adminfunc/eeg_optionsbackup.m</i> and
<i>functions/adminfunc/eeglab_options.m</i>, all of which I have included in the compilation process. This script does run correctly if I use my general Matlab/EEGLAB install, so I'm wondering if anyone has made use of the Matlab Compiler with EEGLAB scripts
 before or has some insight into some other dependencies I would need to include?<br>
<br>
Thanks,<br>
Ben<br>
<br>
<br>
------------------------------------------<br>
Setting up environment variables<br>
---<br>
LD_LIBRARY_PATH is .:/usr/local/MATLAB/MATLAB_Runtime/v901/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/bin/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/opengl/lib/glnxa64<br>
Cannot find option file /home/ben/.mcrCache9.0.1/eeg_optionsbackup.txt<br>
Cannot find option file /home/ben/.mcrCache9.0.1/eeg_options.txt<br>
<br>
ans =<br>
<br>
Undefined function or variable 'option_savetwofiles'.<br>
<br>
Warning: could not access the local eeg_options file<br>
pop_loadset(): loading file 20160523160254_NT01-ENO-1-3_NTPrePro.set ...<br>
Cannot find option file /home/ben/.mcrCache9.0.1/eeg_optionsbackup.txt<br>
Cannot find option file /home/ben/.mcrCache9.0.1/eeg_options.txt<br>
<br>
ans =<br>
<br>
Undefined function or variable 'option_savetwofiles'.<br>
<br>
Warning: could not access the local eeg_options file<br>
WARNING: EEGLAB ran out of memory while converting dataset to single precision.<br>
         Save dataset (preferably saving data to a separate file; see File > Memory options).<br>
         Then reload it.<br>
Undefined function or variable 'option_scaleicarms'.<br>
<br>
Error in eeg_checkset (line 963)<br>
<br>
<br>
Error in pop_loadset (line 192)<br>
<br>
<br>
Error in pipeline3Compiler (line 27)<br>
</div>
<br>
<p></p>
</div>
</body>
</html>