[FieldTrip] Error in source analysis

Keyvan Mahjoory mahjoory86 at gmail.com
Mon May 26 18:14:17 CEST 2014


Dear All,

Here is my scripts for source analysis, when I run it, I face with  error
mentioned below,

load 'standard_bem.mat'
cfg              = [];
cfg.method       = 'dics';
cfg.frequency    = 10;
cfg.grid         = grid;
cfg.elec=ft_read_sens('standard_1020.elc');
cfg.vol          = vol;
sourcePost_nocon = ft_sourceanalysis(cfg,freq);

??? Error using ==> svd
Input to SVD must not contain NaN or Inf.

Error in ==> beamformer_dics>pinv at 650
  [U,S,V] = svd(A,0);

Error in ==> beamformer_dics at 339
        filt = pinv(lf' * invCf * lf) * lf' *
        invCf;              % Gross eqn. 3,
        use PINV/SVD to cover rank deficient
        leadfield

Error in ==> ft_sourceanalysis at 567
      dip(i) = beamformer_dics(grid, sens,
      vol, [],  squeeze(Cf(i,:,:)),
      optarg{:});

Thank you in advance,

Best,
Keyvan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20140526/70da1c58/attachment-0001.html>


More information about the fieldtrip mailing list