Print

Print


Hello Peter,

Thanks! It solved the problem.
Another question here. While creating volumes of interests (8mm) for spDCM, I notice that some VOIs have no signal. May I know what may be causing this problem?

        matlabbatch{jj}.spm.util.voi.spmmat = cellstr(fullfile(GLM_dir,'SPM.mat'));
        matlabbatch{jj}.spm.util.voi.adjust = 0; 
        matlabbatch{jj}.spm.util.voi.session = 1; % session 1
        matlabbatch{jj}.spm.util.voi.name = rois{jj};
        matlabbatch{jj}.spm.util.voi.roi{1}.spm.spmmat = {''}; % using SPM.mat above
        matlabbatch{jj}.spm.util.voi.roi{1}.spm.contrast = 1;  % F test
        matlabbatch{jj}.spm.util.voi.roi{1}.spm.threshdesc = 'none';
        matlabbatch{jj}.spm.util.voi.roi{1}.spm.thresh = 0.05;
        matlabbatch{jj}.spm.util.voi.roi{1}.spm.extent = 0;
        %matlabbatch{jj}.spm.util.voi.roi{2}.spm.mask.contrast = 1; 
        matlabbatch{jj}.spm.util.voi.roi{2}.mask.image = cellstr(['E:\Winson\PhD\projects\ROIs\',rois{jj},'.nii,1']);
        matlabbatch{jj}.spm.util.voi.roi{2}.mask.threshold = 0.5;
        matlabbatch{jj}.spm.util.voi.expression = 'i1 & i2';

Regards,
Winson

On Wed, Dec 5, 2018 at 12:28 AM Zeidman, Peter <[log in to unmask]> wrote:

Dear Winson

If you haven’t already, please could I ask you to update to the latest version of SPM (released two weeks ago) and let us know if the problem persists? If so, I would be very grateful if you could send me the minimal files I would need to reproduce the problem.

 

Best
Peter

 

From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On Behalf Of Winson Yang
Sent: 04 December 2018 22:58
To: [log in to unmask]
Subject: [SPM] Problem with estimating DCM

 

Hello SPM,

 

I was testing my spDCM script on a resting-state data and came up with some errors while estimating the DCM.

 

This is the error produced:

 

Running 'DCM estimation'

Failed  'DCM estimation'

Unable to perform assignment because dot indexing is not supported for variables of this type.

In file "C:\Program Files\MATLAB\spm12\config\spm_cfg_dcm_est.m" (v7153), function "spm_run_dcm_est" at line 323.

 

The following modules did not run:

Failed: DCM estimation

 

 

Could you guide me through this?

 

 

Regards,

Winson