[FieldTrip] Neuromag/ Elekta 306 layout file

Sreenivasan R. Nadar, Ph.D. sreenivasan.r.nadar at gmail.com
Mon Feb 8 19:50:58 CET 2016


Fieldtripers,

Anybody has a layout file for Elekta/Neuromag system? I downloaded the file
from the following discussion list:
http://mailman.science.ru.nl/pipermail/fieldtrip/2007-March/001019.html.
However, this layout file give errors (i.e., Attempt to reference field of
non-structure array) when I use it for ft_topoplotIC(cfg,components).  Am I
missing something? I used the following commands:

%~~~~~~~~~~~~~~~
clear all

cfg = [];
cfg.dataset     = 'C071_resting_150608.fif';
cfg.hpfilter = 'yes'
cfg.hpfreq   = 1;
cfg.channel = {'MEG', '-STI001', '-STI002','-STI003','-STI004',
'-STI005',...,
    '-STI006','-STI007','-STI008','-STI101','-STI201','-STI301'};

data_continuous = ft_preprocessing(cfg);

%resample the data to 100Hz
cfg = [];
cfg.resamplefs = 100;
[data] = ft_resampledata(cfg, data_continuous)

%% running ICA and cleaning data
cfg = [];
cfg.method = 'runica';
comp = ft_componentanalysis(cfg, data);

cfg = [];
cfg.component = [1:50];
cfg.layout = 'NM306all.mat';
cfg.comment = 'no';
ft_topoplotIC(cfg, comp);

%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thank you

Sreenivasan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160208/957ee352/attachment-0001.html>


More information about the fieldtrip mailing list