Dear Marina
Sorry you've had trouble with this. Are you using the latest release of SPM? There was an issue with this, that was fixed a while ago.
Best
P
-----Original Message-----
From: SPM (Statistical Parametric Mapping) <[log in to unmask]> On Behalf Of Marina Shpaner
Sent: 05 August 2019 16:55
To: [log in to unmask]
Subject: [SPM] DCM batch failing
Dear experts,
I'm having trouble setting up a batch script for dcm. Specifically, the spm_dcm_estimate doesn't seem to overwrite the model. I'm using the script below. Do I have to start with an empty model every time?
Thank you in advance.
-Marina
for s = 1:length(subjects)
subject = subjects{s};
subject_folder_pattern = strcat(subject, '_MP_60sBlock.feat/SPM_DCM/music_inhib_hp234');
% Give this subject a duplicate of each template DCM
subject_dcms = cell(size(dcm_files));
for f = 1:length(dcm_files)
clear DCM Ep Cp F ans
subject_dcms{f} = fullfile(dataDir, subject, subject_folder_pattern,dcm_files{f});
spm_dcm_estimate(subject_dcms{f});
end
end
|