-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* suppPrep4stats re-write * Fixed error when plotting more than 6 conditions * new epp_makegrands function * Improvments to speed when combining data * support for plotting over time windows + Removed plotting t-values + Added control of color-map * Fix bug when measuring from average of channels * Fix to bad chars in condition names * minor fix * minor fix * improvment to loading data * major fix to flipped time axes * update README * new author
- Loading branch information
Showing
20 changed files
with
245 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
% PURPOSE: Collapes all data across subjects. This is useful for plotting | ||
% data of large data sets. | ||
% | ||
% | ||
% FORMAT | ||
% ------ | ||
% study = epp_makegrands(study) | ||
% | ||
% | ||
% See also epp_combineconds, epp_GFP, epp_diffwave, epp_LRP | ||
% | ||
% | ||
% Author: Mattan S. Ben Shachar & Rachel Rac, BGU, Israel | ||
|
||
%{ | ||
Change log: | ||
----------- | ||
23-04-2018 Minor fix | ||
16-04-2018 New function (written in MATLAB R2017a) | ||
%} | ||
function study = epp_makegrands(study) | ||
for c = 1:length(study) | ||
%% IDs | ||
study(c).IDs = table(000,size(study(c).IDs,1),'VariableNames',{'ID' 'nTrials'}); | ||
|
||
%% Data | ||
if isfield(study,'Data') | ||
study(c).Data = mean(study(c).Data,3); | ||
end | ||
|
||
if isfield(study,'ersp') | ||
study(c).ersp = mean(study(c).ersp,4); | ||
end | ||
|
||
if isfield(study,'itc') | ||
study(c).itc = mean(study(c).itc,4); | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.