[FieldTrip] cfg.method = 'sam'
Elena Orekhova
Elena.Orekhova at neuro.gu.se
Fri Jun 3 14:25:46 CEST 2011
Dear colleagues,
Sorry, I posted much on the list recent time. I want to figure out howto run SAM analysis on my data.
When I run 'lcmv' beamformer on my averaged dataset it works fine:
cfg = [];
cfg.grad = hdr.grad;
cfg.method = 'lcmv';
cfg.grid = grid;
cfg.vol = vol_cm;
cfg.reducerank=2;
cfg.keepfilter = 'yes'
cfg.channel = MAG; %MAG = {'MEG0721', 'MEG0731',... }
source = ft_sourceanalysis(cfg, tlckavg);
When I do the same with cfg.method = 'lcmv' option,
I get the error:
*****************************
??? Undefined function or method 'beamformer_sam' for input arguments of type 'struct'.
Error in ==> sourceanalysis at 1158
dip(i) = beamformer_sam(grid, sens, vol, squeeze(avg(i,:,:)), squeeze(Cy(i,:,:)),
optarg{:});
Error in ==> ft_sourceanalysis at 11
[varargout{1:nargout}] = funhandle(varargin{:});
Does anybody know how to make the ‘SAM’ option to work?
Does anybody used cfg.method = 'lcmv' option in the Fieldtrip???
Regards,
Elena
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20110603/90f5db04/attachment-0001.html>
More information about the fieldtrip
mailing list