[FieldTrip] Source Reconstruction using Openmeeg method
Johanna Zumer
johanna.zumer at gmail.com
Tue Apr 30 18:23:24 CEST 2013
Hi Mushfa,
My guess is that the channels that have you used to compute .csdspctrm are
not the same as the channels in cfg.elec. If you set cfg.channel =
freqPost.label, does that solve it?
Cheers,
Johanna
2013/4/30 Mushfa Yousuf <mushfa.yousuf at googlemail.com>
> Hello Fieldtrippers,
>
> I am doing source reconstruction using EEG channels on a fieldtrip.
>
> I have computed Forward solution i.e head model using 'Openmeeg' and lead
> field successfully.
>
> For the inverse solution using 'dics' method, I wrote the following syntax
>
>
>
>
>
> cfg = [];
> cfg.method = 'dics';
> cfg.frequency = 130;
> cfg.elec = dataFIC12.hdr.elec;
> cfg.grid = grid;
> cfg.vol = vol;
>
> sourcePost = ft_sourceanalysis(cfg, freqPost);
>
>
> and I have received the following error:
>
>
> ??? Error using ==> mtimes
> Inner matrix dimensions must agree.
>
> Error in ==> beamformer_dics at 314
> filt = pinv(lf' * invCf * lf) * lf' * invCf; %
> Gross eqn. 3, use PINV/SVD to cover rank deficient
> leadfield
>
> Error in ==> ft_sourceanalysis at 595
> dip(i) = beamformer_dics(grid, sens, vol, [],
> squeeze(Cf(i,:,:)), optarg{:});
>
> Error in ==> newCode at 214
> sourcePost = ft_sourceanalysis(cfg, freqPost);
>
>
>
>
> Any help would be appreciated.
>
>
> Regards;
>
>
> Mushfa Yousuf
>
> Neurozentrum,
> Universitätsklinikum Schleswig-Holstein,
> Campus Kiel (UKSH), Deutschland
>
>
> _______________________________________________
> fieldtrip mailing list
> 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/20130430/78b7a9b2/attachment-0002.html>
More information about the fieldtrip
mailing list