Dear all,<br><br>I would like to apply FT_MEGPLANAR on ERF data obtain from FT_TIMELOCKANALYSIS. According to tutorial that should be possible. <div><br></div><div>This is the error I get:</div><div>Error using ft_checkdata (line 376)</div>
<div>This function requires ctf151, ctf275, bti148, bti248, itab153, yokogawa160 or</div><div>yokogawa64 data as input, but you are giving ctf275 data.</div><div><br></div><div>Error in ft_megplanar (line 109)</div><div>data = ft_checkdata(data, 'datatype', {'raw' 'freq'}, 'feedback', 'yes',</div>
<div>'hassampleinfo', 'yes', 'ismeg', 'yes', 'senstype', {'ctf151', 'ctf275', 'bti148',</div><div>'bti248', 'itab153', 'yokogawa160', 'yokoga </div>
<div><br></div><div><br></div><div><br></div><div>This is how looks like output form FT_TIMELOCKANALYSIS. On this data I would like to apply FT_MEGPLANAR.</div><div><div>average32 = </div><div><br></div><div>          avg: [271x1440 double]</div>
<div>          var: [271x1440 double]</div><div>         time: [1x1440 double]</div><div>          dof: [271x1440 double]</div><div>        label: {271x1 cell}</div><div>        trial: [75x271x1440 double]</div><div>       dimord: 'rpt_chan_time'</div>
<div>    trialinfo: [75x1 double]</div><div>          cfg: [1x1 struct]</div></div><div><br></div><div><br></div><div>My code: </div><div><div>cfg = [];</div><div>cfg.method    = 'template';</div><div>cfg.template      = 'CTF275_neighb.mat';</div>
<div>neighbours       = ft_prepare_neighbours(cfg, grad);</div><div><br></div><div>cfg=[];</div><div>cfg.neighbours=neighbours;</div><div>cfg.planarmethod = 'orig';</div><div>cfg.trials = 'all';</div><div>
planar32 = ft_megplanar(cfg, average32);</div></div><div><br></div><div><br></div><div>*grad is structure obtained earlier with FT_PREPROCESSING  </div><div><br></div><div><br></div><div><br></div><div>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. </div>
<div><br></div><div><br></div><div><br></div><div>Thank you in advance!</div><div><br></div><div>Nenad </div><div><br></div><div><br></div><div><br></div><div><br></div>