[FieldTrip] 'ft_prepare_layout' Error

Mushfa Yousuf mushfa.yousuf at googlemail.com
Fri Jul 19 11:40:01 CEST 2013


Hello ;

I am receiving the following error while using ft_prepare_layout


??? Index exceeds matrix dimensions.

Error in ==> ft_prepare_layout>sens2lay at 788
  mindist = mindist(1:round(numel(label)/4));

Error in ==> ft_prepare_layout at 285
  lay = sens2lay(cfg.grad, cfg.rotate, cfg.projection,
  cfg.style);

Error in ==> spm_eeg_project3D at 27
lay = ft_prepare_layout(cfg);

Notice that I am using MEG channels and the above function perfectly works
when I used the EEG channel.

For me itt seems like there is any problem with my '.grad' structure ?



Kindly please help me to toubleshoot this problem.


Regards;

Mushfa Yousuf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20130719/e7990254/attachment-0001.html>


More information about the fieldtrip mailing list