[FieldTrip] EEG soure reconstruction using SAM beamformer
Tyler Grummett
tyler.grummett at flinders.edu.au
Thu Aug 28 09:19:27 CEST 2014
Hey Praghajieeth,
Firstly, I am by no means an expert of fieldtrip (I only started using it six or so months ago), so if I am wrong I apologise but you have been warned haha.
Ill try and help, can you look up the following:
Can you tell me what the dimensions of Cy is and whether there are any NaNs.
What dimensions are data.chan.elec and data.label?
Also its worth checking your vol1.mat for NaNs aswell.
Good luck!
Tyler
Sent from my iPad
On 27 Aug 2014, at 8:33 pm, "Praghajieeth Raajhen" <praajhen at gmail.com<mailto: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<mailto:praajhen at gmail.com>
Master Thesis @ UKSH
Kiel, Germany
_______________________________________________
fieldtrip mailing list
fieldtrip at donders.ru.nl<mailto:fieldtrip at donders.ru.nl>
http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140828/e7664a4a/attachment-0001.html>
More information about the fieldtrip
mailing list