Skip to content

Commit 5f9028b

Browse files
made input options open(removed hardcoded input)
1 parent 58a647d commit 5f9028b

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/helper/pspm_ledalab.m

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@
5959
end;
6060
options.filter = 1;
6161
try options.norm; catch, options.norm = 0; end;
62+
try options.optimize; catch, options.optimize = 2; end
63+
try options.export_era; catch, options.export_era = [1 4 0.01 1]; end
64+
try options.ledalab_args; catch, options.ledalab_args = {}; end
6265

6366
% does result file exist?
6467
if exist(outfile, 'file')
@@ -101,8 +104,10 @@
101104
mkdir(workpath);
102105
copyfile(fullfile(cpth, ledafn{1}), fullfile(workpath, ledafn{1}));
103106
% do the analysis
104-
Ledalab(workpath, 'open', 'leda', 'analyze', options.method{k}, 'optimize', 2, ...
105-
'export_era', [1 4 0.01 1]);
107+
Ledalab(workpath, 'open', 'leda', 'analyze', options.method{k}, ...
108+
'optimize', options.optimize, ...
109+
'export_era', options.export_era, ...
110+
options.ledalab_args{:});
106111
% rename files and copy to current path
107112
ledafiles = dir(workpath);
108113
for f = 3:numel(ledafiles)

0 commit comments

Comments
 (0)