Dear Benjamin,
Guillaume has just told me that the situation is a little more involved.
I did'nt appreciate that you were using the 'GUI' option (I didn't know
such a thing exists).
In fact, there is a bug in this function when you use the GUI option
(SPM creates fields DCM.A instead of the new format DCM.Ep.A etc).
Additionally the information that is entered is only 1's and 0's - ie no
real connection values.
So, we will fix this bug and get back to you.
In the mean time its probably best you overwrite parameters of an
existing model and call spm_dcm_generate directly.
Best, Will.
On 10/11/2010 12:14, Will Penny wrote:
> Dear Benjamin,
>
> This function only works with models that have been estimated.
>
> The field DCM.Ep contains the estimated parameters (the posterior mean).
>
> So, either estimate a model or set this field yourself eg. to create
> whatever values of intrinsic, modulatory, input connections, etc you like
>
> DCM.Ep.A= ...
>
> DCM.Ep.B= ...
>
> The field DCM.Ep should have the same format as the prior (DCM.pE - p
> before E hence prior !)
>
> Best,
>
> Will.
>
> On 10/11/2010 11:48, Benjamin Seeber wrote:
>> Dear all,
>> I have a problem with spm_dcm_create. I use SPM8 (newest
>> version{updated}). First I start with spm_dcm_create the gui, then I
>> take all the necessary clicks. After pressing the Done-button, I get the
>> following error code in Matlab: Are there any possible solution?
>>
>> />> spm_dcm_create/
>> /??? Reference to non-existent field 'Ep'./
>> /
>> /
>> /Error in ==> spm_dcm_generate at 44/
>> /eigval = eig(DCM.Ep.A);/
>> /
>> /
>> /Error in ==> spm_dcm_create at 301/
>> /spm_dcm_generate(['DCM_' syn_model],source_model,SNR);/
>> /
>> /
>> /Are there any possible solution?/
>> /Thanks for answers./
>
--
William D. Penny
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
Tel: 020 7833 7475
FAX: 020 7813 1420
Email: [log in to unmask]
URL: http://www.fil.ion.ucl.ac.uk/~wpenny/
|