Dear Yu,
I made a slight typo in my previous mail.
Obviously
tmpdat = tmpdat(abs(tmpdat)); % this will normalise each trial for its
amplitude;
should read
tmpdat = tmpdat./abs(tmpdat);
for the normalization to work.
Best wishes,
Jan-Mathijs
----------------------------------
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.