Reading the data

Definetrial and preprocessing require the original MEG dataset, which is available from ftp://ftp.fcdonders.nl/pub/fieldtrip/tutorial/Subject01.zip.

% find the interesting segments of data
cfg = [];                                                  % empty configuration
cfg.dataset                 = 'Subject01.ds';              % name of CTF dataset  
cfg.trialdef.eventtype      = 'backpanel trigger';
cfg.trialdef.prestim        = 1;
cfg.trialdef.poststim       = 2;
cfg.trialdef.eventvalue     = 3;                     
cfg = definetrial(cfg);            

% preprocess the data
cfg.trl([15, 36, 39, 42, 43, 49, 50, 81, 82, 84],:) = [];  % remove the segments that have artifacts
cfg.channel    = {'MEG', '-MLP31', '-MLO12'};              % read all MEG channels except MLP31 and MLO12
cfg.lpfilter   = 'yes';                              % apply lowpass filter
cfg.lpfreq     = 35;                                 % lowpass at 35 Hz.
dataFIC2timelock = preprocessing(cfg);                      

These data have been cleaned from artifacts by removing several trials and two sensors; see visual_artifact_rejection. For event related averaging data it is recommended to lowpass de data at 35 Hz (and NOT to detrend!).

Subsequently you can save the data to disk.

save dataFIC2timelock dataFIC2timelock
tutorial/shared/preprocessing2timelock.txt · Last modified: 2011/09/08 10:17 by 131.174.45.50

You are here: starttutorialsharedpreprocessing2timelock
This DokuWiki features an Anymorphic Webdesign theme, customised by Eelke Spaak and Stephen Whitmarsh.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0