-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreenUpdateFiltered.m
35 lines (29 loc) · 999 Bytes
/
screenUpdateFiltered.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
%% screenUpdateFiltered.m
%
% screenUpdate.m is the script to check for new EDF files in the working
% directory and, if present, to build acreening analysis figures for them.
% ScreenUpdateFiltered.m does the same thing, but using the default
% bandpass filter as a step in import and preparation. It will SKIP any
% files for which the "screening" directories already exist, and it will
% warn when data files exist for an EDF (without a screening directory).
%
% For a completely new directory, screenLoop.m can be used as well, but
% this one should be safer!
%
% MDT
% 2016.03.03
% 0.2
% Initialize eeglab for use by ge_screeningAnalysis2 function
eeglab;
close all;
clc;
% Make list of EDF files
fileList = ls('*.edf');
[numFiles, useless] = size(fileList);
disp('screenUpdate.m Running');
disp(['Current directory: ' pwd]);
disp(['Number of EDF files: ' int2str(numFiles)]);
for ii = 1:numFiles
curFile = fileList(ii,:);
ge_screeningAnalysis3Filtered(curFile);
end