[FieldTrip] Error while using ft_sensorrealign

f.chella at unich.it f.chella at unich.it
Mon Jul 7 11:34:57 CEST 2014


Hi everyone,

I am getting an error when I use ft_sensorrealign to align my MEG  
sensor (i.e., ITAB MEG sensor) with the subject mri using fiducials.

Below is the code I am using.
I first specified the fiducial location in the sensor space in the  
field sens.fid:
  sens.fid.pnt(1,:) = [0   101.5    0] ;
  sens.fid.pnt(2,:) = [-69.9    -0.6    0.8];
  sens.fid.pnt(3,:) = [69.9     0.6   -0.8];
  sens.fid.label{1} = 'nasion';
  sens.fid.label{2} = 'left';
  sens.fid.label{3} = 'right';

and then I called ft_sensorrealign:
  cfg = [];
  cfg.method   = 'fiducial';
  cfg.fiducial = {'nasion', 'left', 'right'};
  cfg.target.pnt(1,:) = [-0.5    86.5   -15.5];
  cfg.target.pnt(2,:) = [-73.5   -7.5  -43.5];
  cfg.target.pnt(3,:) = [69.5  -16.5  -44.5];
  cfg.target.label    = {'nasion', 'left', 'right'};
  sens_realigned = ft_sensorrealign(cfg,sens);

Now, I get the following error:

  ??? Subscripted assignment between dissimilar structures.
  Error in ==> ft_sensorrealign at 235
      tmp(i) = ft_convert_units(template(i), elec.unit); % ensure that  
the units are consistent with the electrodes

Does anyone know why this would be occurring and how to fix it?
Thanks in advance for the help.


Federico Chella, Ph.D.
Dept. of Neuroscience, Imaging and Clinical Sciences
ITAB ? Institute for advanced Biomedical Technologies
  ?G. d'Annunzio? University of Chieti-Pescara, Chieti, Italy




More information about the fieldtrip mailing list