Skip to content

Commit

Permalink
Merge pull request #196 from stephaniebrandl/append_epo
Browse files Browse the repository at this point in the history
bug in proc_appendEpochs
  • Loading branch information
svendaehne authored Jan 19, 2017
2 parents 25d07e4 + 319d8a6 commit 2845d43
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions processing/proc_appendEpochs.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
for ii= 2:length(Cepo),
epo1= proc_appendEpochs(epo1, Cepo{ii});
end
epo=epo1;
return
end

Expand Down
5 changes: 4 additions & 1 deletion processing/utils/score_medianvar.m
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@

function score = score_medianvar(dat,W,~)
%SCORE_MEDIANVAR - Median variance of projected components as score

nChans = size(dat.x,2);

if size(W,2)<nChans
nChans=size(W,2);
end

fv = proc_linearDerivation(dat,W);
fv = proc_variance(fv);
score = zeros(nChans,1);
Expand Down

0 comments on commit 2845d43

Please sign in to comment.