[FieldTrip] The compartment nesting cannot be determined

saeed zahran saeedzahran at hotmail.com
Thu Jan 28 12:06:34 CET 2016


Dear Cris,

Thank you for your time and consideration.

I have solved the problem, after I add 1 to all the faces, since there was zeros in the faces,


Faces=load('Faces.mat');
Faces=Faces.Faces;
 
Points=load('Points.mat');
Points=Points.Points;

Rfaces=load('Rfaces.mat');
Rfaces=Rfaces.Rfaces;
 
Rpoints=load('Rpoints.mat');
Rpoints=Rpoints.Rpoints;
 
RRfaces=load('RRfaces.mat');
RRfaces=RRfaces.RRfaces;
 
RRpoints=load('RRpoints.mat');
RRpoints=RRpoints.RRpoints;
 
Faces=Faces+1;
Rfaces=Rfaces+1;
RRfaces=RRfaces+1;
 vol = [];
vol.bnd(1).pnt=Points;
vol.bnd(1).tri=Faces;
 
vol.bnd(2).pnt=Rpoints;
vol.bnd(2).tri=Rfaces;
 
vol.bnd(3).pnt=RRpoints;
vol.bnd(3).tri=RRfaces;
vol.cond = c;
 

but I have the below error:Attempted to access vol.cond(4); index out of bounds because numel(vol.cond)=3.

Error in ft_headmodel_bemcp (line 154)
weight = (vol.cond(2)-vol.cond(3))/((vol.cond(3)+vol.cond(4)));%*2*pi);

Error in ft_prepare_headmodel (line 253)
      vol = ft_headmodel_bemcp(geometry, 'conductivity', cfg.conductivity);

Error in openmeeg_eeg_leadfield_example_me (line 167)
vol = ft_prepare_headmodel(cfg, vol);

With two boundaries I have the below error:
Attempted to access vol.cond(3); index out of bounds because numel(vol.cond)=2.

Error in ft_headmodel_bemcp (line 129)
weight = (vol.cond(1)-vol.cond(2))/((vol.cond(2)+vol.cond(3)));%*2*pi);

Error in ft_prepare_headmodel (line 253)
      vol = ft_headmodel_bemcp(geometry, 'conductivity', cfg.conductivity);

Error in openmeeg_eeg_leadfield_example_me (line 167)
vol = ft_prepare_headmodel(cfg, vol);



Best regards
Saeed.

 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20160128/a8fa63e0/attachment-0002.html>


More information about the fieldtrip mailing list