Hi Alon,
It'll probably be easier to do it with ECDs. Look at line 64 of
spm_erp_L. You can put a breakpoint there and use the inputs to
ft_compute_leadfield to generate your own leadfields for the positions
you need.
Best,
Vladimir
On 26 Jun 2012, at 18:47, Alon Keren wrote:
> My study focuses on the inverse problem of M/EEG using constraints
> on the neuronal dynamics, and I would like to test the performance
> of DCM on a simulated data I created. My simulated data includes
> time courses of connected sources projected to the scalp electrodes
> via a spehrical head forward model. In order to apply DCM to this
> data I need to either enter my head model (lead field matrix) to
> DCM, or use the DCM's forward model to project the simulated source
> activity to the scalp. In any case, I need some help in interfacing
> to the DCM functions.
> Could you refer me to the right functions and variables, where I can
> import or export the lead field matrix?
>
> Thanks,
> Alon.
|