Hi Sam
There's a bug in the current release of SPM which has previously been reported, which means that the batch does not save when selecting to overwrite the original DCMs. This has been fixed for the next release, which won't come out for a couple of months. Here's how to fix this yourself:
1. In Matlab, go into the config directory within SPM. You can do this by typing:
cd(fullfile(spm('dir'),'config'))
2. Type the following and press enter:
edit spm_cfg_dcm_est.m
3. On line 365, change:
if ~isempty(P) && (est_type == OUTPUT_DCM)
to:
if ~isempty(P) && (est_type ~= EST_NONE)
Ensure you've got 3 or more subjects and that should solve it.
Apologies for inconvenience,
Peter
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On Behalf Of Sam Torrisi
Sent: 08 July 2018 00:13
To: [log in to unmask]
Subject: [SPM] matlabbatch and dcm estimation
hi there SPMers-
i think i have a fairly simple question but the matlabbatch documentation isn't very helpful at the moment. i've specified a bunch of dcm models and now i want to estimate them. i'm following lines 213-217 of the example dcm_spm12_batch.m script.
i have files such as:
DCM_508_endog10_15.mat
DCM_508_endog10_16.mat
DCM_508_endog10_17.mat
and my code specifies them as:
matlabbatch{1}.spm.dcm.fmri.estimate.dcmmat = {fullfile(DCM_508_endog10_15.mat'); fullfile('DCM_508_endog10_16.mat'); fullfile('DCM_508_endog10_17.mat')};
then i run
spm_jobman('run',matlabbatch);
and it estimates each, but makes a file with today's date instead of the file itself that's being estimated. then it overwrites that today's-date file with the next estimation. help? thanks!
-sam
|