[FieldTrip] problem with FT_MEGPLANAR
Nenad Polomac
polomacnenad at gmail.com
Fri Sep 7 12:36:05 CEST 2012
Dear all,
I would like to apply FT_MEGPLANAR on ERF data obtain from
FT_TIMELOCKANALYSIS. According to tutorial that should be possible.
This is the error I get:
Error using ft_checkdata (line 376)
This function requires ctf151, ctf275, bti148, bti248, itab153, yokogawa160
or
yokogawa64 data as input, but you are giving ctf275 data.
Error in ft_megplanar (line 109)
data = ft_checkdata(data, 'datatype', {'raw' 'freq'}, 'feedback', 'yes',
'hassampleinfo', 'yes', 'ismeg', 'yes', 'senstype', {'ctf151', 'ctf275',
'bti148',
'bti248', 'itab153', 'yokogawa160', 'yokoga
This is how looks like output form FT_TIMELOCKANALYSIS. On this data I
would like to apply FT_MEGPLANAR.
average32 =
avg: [271x1440 double]
var: [271x1440 double]
time: [1x1440 double]
dof: [271x1440 double]
label: {271x1 cell}
trial: [75x271x1440 double]
dimord: 'rpt_chan_time'
trialinfo: [75x1 double]
cfg: [1x1 struct]
My code:
cfg = [];
cfg.method = 'template';
cfg.template = 'CTF275_neighb.mat';
neighbours = ft_prepare_neighbours(cfg, grad);
cfg=[];
cfg.neighbours=neighbours;
cfg.planarmethod = 'orig';
cfg.trials = 'all';
planar32 = ft_megplanar(cfg, average32);
*grad is structure obtained earlier with FT_PREPROCESSING
Furthermore, I would also like to apply FT_MEGPLANAR on the other data
obtained from ft_rejectcomponent (after ICA rejection) and this doesn't
work as well. This error is the same as one I mentioned above.
Thank you in advance!
Nenad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20120907/12746a00/attachment.html>
More information about the fieldtrip
mailing list