-
Notifications
You must be signed in to change notification settings - Fork 0
/
load_overall_stand.m
34 lines (31 loc) · 1.47 KB
/
load_overall_stand.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
patients = {'patient2', 'patient4', 'patient6np', 'patient6b', 'patient6d', 'patient6e', 'patient8', 'patient10a', 'patient11', 'patient6c','patient6am'};
%demo
aims_grades = [1 0 2 2 1.5 2 2 0 0 0 3];
true_labels = aims_grades > 0;
dyskinetic_patients = find(aims_grades >0);
normal_patients = find (aims_grades == 0);
patient_label = [];
clip_lists = cell(size(patients));
for j =1:length(patients)
clip_lists{j} = cell(0);
end
for i = 1:length(vars)
patient_label(1) = ~isempty(strfind(vars{i}, 'patient2'));
patient_label(2) = ~isempty(strfind(vars{i}, 'patient4'));
patient_label(3) = ~isempty(strfind(vars{i}, 'patient6np'));
patient_label(4) = ~isempty(strfind(vars{i}, 'patient6b'));
patient_label(5) = ~isempty(strfind(vars{i}, 'patient6d'));
patient_label(6) = ~isempty(strfind(vars{i}, 'patient6e'));
patient_label(7) = ~isempty(strfind(vars{i}, 'patient8'));
patient_label(8) = ~isempty(strfind(vars{i}, 'patient10a'));
patient_label(9) = ~isempty(strfind(vars{i}, 'patient11'));
patient_label(10) = ~isempty(strfind(vars{i}, 'patient6c'));
patient_label(11) = ~isempty(strfind(vars{i}, 'patient6am'));
posture_label = ~isempty(strfind(vars{i}, 'stand'));
movement_label = ~isempty(strfind(vars{i}, 'finger'))|| ~isempty(strfind(vars{i}, 'handopen'));
for j = 1:length(patients)
if(patient_label(j) && posture_label && movement_label)
clip_lists{j} = [clip_lists{j} vars{i}];
end
end
end