[FieldTrip] EEG soure reconstruction using SAM beamformer
Eelke Spaak
eelke.spaak at donders.ru.nl
Thu Aug 28 09:24:39 CEST 2014
Hi Praghajith,
You should use the latest version of fieldtrip; it should work with
the 2014 one you mentioned.
The error concerning the 'abort' variable might be caused by fieldtrip
not being on your path correctly. You should add *only* the root
folder to the path yourself (i.e. not using addpath(genpath()) ), then
fieldtrip takes care of the path itself. So do:
restoredefaultpath
addpath <path_to_fieldtrip>
ft_defaults
and then it should work. If it doesn't, let us know.
Best,
Eelke
On 27 August 2014 13:00, Praghajieeth Raajhen <praajhen at gmail.com> wrote:
> 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
>
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
More information about the fieldtrip
mailing list