TEAP (Toolbox for Emotion Analysis using Physiological Signals) doc
eeglab_options.m
Go to the documentation of this file.
1 % eeglab_options() - handle EEGLAB options. This script (not function)
2 % set the various options in the eeg_options() file.
3 %
4 % Usage:
5 % eeglab_options;
6 %
7 % Author: Arnaud Delorme, SCCN, INC, UCSD, 2006-
8 
9 % Copyright (C) Arnaud Delorme, SCCN, INC, UCSD, 2006-
10 %
11 % This program is free software; you can redistribute it and/or modify
12 % it under the terms of the GNU General Public License as published by
13 % the Free Software Foundation; either version 2 of the License, or
14 % (at your option) any later version.
15 %
16 % This program is distributed in the hope that it will be useful,
17 % but WITHOUT ANY WARRANTY; without even the implied warranty of
18 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 % GNU General Public License for more details.
20 %
21 % You should have received a copy of the GNU General Public License
22 % along with this program; if not, write to the Free Software
23 % Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 
25 % load local file
26 % ---------------
27 homefolder = '';
28 try,
29  %clear eeg_options; % note: we instead clear this function handle in pop_editoptions()
30  %commenter by Mohammad 7 May 2015
31 % if iseeglabdeployed
32 % com1 = readtxtfile(fullfile(eeglabexefolder, 'eeg_optionsbackup.txt'));
33 % com2 = readtxtfile(fullfile(eeglabexefolder, 'eeg_options.txt'));
34 % eval( com1 );
35 % eval( com2 );
36 % else
37 % eeg_optionsbackup;
38 % icadefs;
39 %
40 % % folder for eeg_options file (also update the pop_editoptions)
41 % if ~isempty(EEGOPTION_PATH)
42 % homefolder = EEGOPTION_PATH;
43 % elseif ispc
44 % if ~exist('evalc'), eval('evalc = @(x)(eval(x));'); end;
45 % homefolder = deblank(evalc('!echo %USERPROFILE%'));
46 % else homefolder = '~';
47 % end;
48 %
49 % option_file = fullfile(homefolder, 'eeg_options.m');
50 % oldp = pwd;
51 % try
52 % if ~isempty(dir(option_file))
53 % cd(homefolder);
54 % else
55 % tmpp2 = fileparts(which('eeglab_options.m'));
56 % cd(tmpp2);
57 % end;
58 % catch, end;
59  eeg_options; % default one with EEGLAB
60  %cd(oldp);
61  option_savematlab = ~option_savetwofiles;
62 
63 catch
64  lasterr
65  disp('Warning: could not access the local eeg_options file');
66 end;
function
function()