Dear SPM users,
I'm following the discussions about the error message:
>
> > DCM.U.dt = SPM.Sess.U(1).dt;
> >
> > ??? Reference to non-existent field 'U'.
>
> This tells you that either DCM.U or SPM.Sess.U does not exist, when it
> is expected to. The latter is the more likely cause. So, here's what to
> investigate...
>
> If you look at the SPM structure loaded into the workspace, has it got
> a structure within that called Sess, and a structure within that called
> U? If not, then SPM is not an estimated model created with SPM version
> 8 or above. Did you script the creation of the SPM structure too or use
> the GUI?
I created SPM.mat using the batch in SPM8 menu.
I loaded the SPM into workspace and found a structure that called
Sess <1x5 struct>, but there was no structure within that called U.
When I used the GUI DCM specification worked fine (separetely for each of the five sessions, four conditions randomized across all sessions).
When I loaded the DCM into workspace, I found DCM.U.dt = 0.1000, DCM.U.name <1x4 cell>, DCM.U.u <4320x4 double>
What is wrong in my script command (I took the SPM created by the SPM8 batch modus, four conditions randomized across 5 sessions)?
DCM.U.dt = SPM.Sess.U(1).dt;
DCM.U.name = [SPM.Sess.U.name];
DCM.U.u = [SPM.Sess.U(1).u(33:end,1) ...
SPM.Sess.U(2).u(33:end,1) ...
SPM.Sess.U(3).u(33:end,1) ...
SPM.Sess.U(4).u(33:end,1)];
Thanks,
Susanne
|