Skip to content

Commit 2bae841

Browse files
Adding final matrix save
1 parent 8ae7db6 commit 2bae841

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ In the G_PSD_pwelsh script, we first make sure that the triggers are still in th
110110

111111
After that we use the the [pwelch function of Matlab](https://www.mathworks.com/help/signal/ref/pwelch.html) and a log tranformation of the results to get the power frequency results.
112112

113-
#add here what channels we use, for now it's just indivual but we will change this to groups and averages of those groups
113+
# add here what channels we use, for now it's just indivual but we will change this to groups and averages of those groups
114114

115115

116116
## License

src/G_PSD_pwelch.m

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
people_no50_trigger = [];
2828
people_no51_trigger = [];
2929
trigger50_51_same = [];
30+
trigger_times=num2cell(zeros(length(subject_list),5));
3031
end
3132
path_1 = ['C:\Users\dohorsth\Desktop\Testing restingstate\' group{group_count} '\'];
3233

@@ -100,7 +101,8 @@
100101
data_EC = EEG.data(:,info(4):info(4)+(info(4)-info(3))); %this makes sure they are both equally long
101102
end
102103
data_EC(:,1:2560)=[];%added to delete first 10 sec
103-
% end
104+
%
105+
trigger_times(subject_list_count,:)=[subject_list(subject_list_count), info(1),info(2),info(3),info(4)];
104106
%% Compute Power
105107
CPz = 32;
106108
Pz = 31;
@@ -127,9 +129,10 @@
127129
% save([path_1 'PSD_EC_CPzlog_' group{group_count}], 'PSD_EC_CPzlog')
128130
% save([path_1 'PSD_EC_Pzlog_' group{group_count}], 'PSD_EC_Pzlog')
129131
% save([path_1 'PSD_EC_Czlog_' group{group_count}], 'PSD_EC_Czlog')
130-
save([path_1 'trigger50_51_same_' group{group_count}], 'trigger50_51_same')
131-
save([path_1 'people_no_trigger_' group{group_count}], 'people_no_trigger')
132-
save([path_1 'people_1_trigger_' group{group_count}], 'people_1_trigger')
132+
save([path_1 'trigger50_51_same_' group{group_count}], 'trigger50_51_same');
133+
save([path_1 'people_no_trigger_' group{group_count}], 'people_no_trigger');
134+
save([path_1 'people_1_trigger_' group{group_count}], 'people_1_trigger');
135+
save([path_1 'trigger_times_' group{group_count}], 'trigger_times');
133136

134137
end
135138

0 commit comments

Comments
 (0)