[FieldTrip] EEG soure reconstruction using SAM beamformer

Praghajieeth Raajhen praajhen at gmail.com
Wed Aug 27 13:00:17 CEST 2014


Hello!!!!

Please Help out.  where am I going wrong?

 cfg              = [];
 cfg.channel   = 'EEG';
 cfg.method   = 'sam';
 cfg.grid        = grid;
 cfg.vol         = vol1;
 cfg.projectnoise = 'yes';
 cfg.keepfilter = 'yes';
 source = ft_sourceanalysis( cfg, timelock);

workspace of grid,vol1,timelock (.mat)
https://www.dropbox.com/s/bu1inxwgeyc01mi/timelock%2Cgrid%2Cvol.mat?dl=0

1. Using fieldtrip 2013 version
When i do  EEG sourceanalysis using "SAM" method, following error occurs

Attempted to access noise(0); index must be a positive integer or logical.

Error in ==> beamformer_sam at 111
  noise = noise(end);

Error in ==> ft_sourceanalysis at 841
      dip(i) = beamformer_sam(grid, sens, vol,
squeeze_avg,squeeze(Cy(i,:,:)), optarg{:});


PS: same code for MEG source reconsturction works quite good.

2. Using fieldtrip 2014 version
when i do the same I'm getting this kind of errors

Undefined function or variable 'abort'.

Error in ==> ft_sourceanalysis at 156
if abort

PS: Moreover, I cant even do preprocessing with 2014 fieldtrip version. It
is showing same above error.


advance thanks for your kind help.

Praghajith R.S.
praajhen at gmail.com
Master Thesis @ UKSH
Kiel, Germany
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140827/a3458ba1/attachment-0001.html>


More information about the fieldtrip mailing list