Dear SPM users:

 

I encountered a problem with DCM estimation under the matlab 7 enviroment.

When estimate the DCM model, matlab command window promote this:

 

??? Error using ==> horzcat

All matrices on a row in the bracketed expression must have the

 same number of rows.

 

Error in ==> blkdiag at 38

        y = [y sparse(p1(k),m2(k)); sparse(p2(k),m1(k)) varargin{k}];

 

Error in ==> spm_nlsi_GN at 119

ipC   = inv(blkdiag(pC, uC));

 

Error in ==> spm_nlsi at 107

[Ep,Cp,Ce] = spm_nlsi_GN(M,U,Y);

 

Error in ==> spm_dcm_estimate at 56

[Ep,Cp,Ce,H0,H1,H2,M0,M1,L] = spm_nlsi(M,U,Y);

 

Error in ==> spm_dcm_ui at 312

    spm_dcm_estimate;

 

??? Error while evaluating uicontrol Callback.

 

Could some one tell me how to correct this error??

 

Thanks

 

Bei Li

Institute of NeuroInformatics

Dalian University of Technology, China