error with sourceanalysis

Massih Hamidi mhamidi at WISC.EDU
Sat Dec 13 00:56:53 CET 2008

I am running the "localizing oscillatory sources using beamformer
techniques" tutorial on my EEG data (imported from EEGlab) using the mnc t1
template MRI (as described in the "Create BEM headmodel for EEG" tutorial).  

However, I get an error when running sourceinterpolate (?? Attempted to
access sel(1); index out of bounds because numel(sel)=0.)  
When I plotted the output of sourceanalysis (without the anatomical mri), I
get a strange pattern (attached).  

I then tried to run prepare_leadfield with cfg.mri (create the dipole grid
based on segmented mri) and I was able to successfully run sourceanalysis
and sourceitnerpolate, but the map of power estimates look nothing like what
is shown in the tutorial (also attached).

Plotting the data and time-frequency analysis results seem fine, so I don't
think it's an import or freqanalysis problem.  Any ideas on what's wrong? 

The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also and
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sourcepost.jpg
Type: image/jpeg
Size: 25321 bytes
Desc: not available
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sourcepostwithMRIbasedgrid.jpg
Type: image/jpeg
Size: 61407 bytes
Desc: not available
URL: <>

More information about the fieldtrip mailing list