-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEEG_toCSV_test.m
35 lines (26 loc) · 1.26 KB
/
EEG_toCSV_test.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
clear;
clc;
soarDataPath = '..\soarData\';
savedDataPath = '..\savedData';
binlisters_path = '..\binlisters\';
channelLocationFile = '..\EEGLAB_github_pull\eeglab\plugins\dipfit\standard_BESA\standard-10-5-cap385.elp';
save_processed = true;
% creates the variables for saving data and reads the directory for subject
% names
EEGs = EEG_quality_generator(soarDataPath, savedDataPath, binlisters_path, channelLocationFile, save_processed);
% displays subject names in terminal, and wether or not for every subject
% it could find all 3 necessary bdf files
% it should look like this:
% subject# 1|| Name: OSU-TEST-01 || Contains all bdf results: true
% subject# 2|| Name: OSU-TEST-02 || Contains all bdf results: true
% subject# 3|| Name: OSU-TEST-03 || Contains all bdf results: true
EEGs.list_subjects();
% test_calculate_all_quality_scores simply fills the percentages with
% arbitrary floats to simulate the real thing
EEGs = EEGs.test_calculate_all_quality_scores();
% calculate_all_quality_scores is the real thing and call all 3 preproc
% functions for all subjects.
% To try it, just make sure list_subjects outputs a list of subject
% makes sense, and comment this line out:
% EEGs = EEGs.calculate_all_quality_scores();
EEGs.saveEEGtoCSV();