Return index of rejected trials
Karl Doron
karl.doron at GMAIL.COM
Wed Nov 3 00:29:29 CET 2010
I answered my own question!
new=data.cfg.trl(:,1);
old=data.cfg.trlold(:,1);
[TF, ~]=ismember(old, new);
for i=1:length(TF)
if TF(i)==0
rej(i)=i;
end
end
rejected=nonzeros(rej);
---------------------------------------------------------------------------
You are receiving this message because you are subscribed to
the FieldTrip list. The aim of this list is to facilitate the discussion
between users of the FieldTrip toolbox, to share experiences
and to discuss new ideas for MEG and EEG analysis.
See also http://listserv.surfnet.nl/archives/fieldtrip.html
and http://www.ru.nl/neuroimaging/fieldtrip.
---------------------------------------------------------------------------
More information about the fieldtrip
mailing list