Dear Martin
This is working correctly with my test data, so let's try to work out what is different with your data. I think the script believes your DCM has no free parameters. Please could you try the following:
- Type: edit spm_dcm_bmr in Matlab
- Press enter at the end of line 95 (the call to spm_find_pC). Add this diagnostic code on the next line (line 96):
if ~exist(P{j},'file'), fprintf('Model %d not found\n',j); end
fprintf('Subject %d has %d free parameters\n', j, Np);
Then re-run it and see what the output is?
Best
Peter
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On Behalf Of Martin Dietz
Sent: 20 November 2018 14:55
To: [log in to unmask]
Subject: [SPM] PEB: error with spm_dcm_bmr.m
Dear Peter, dear list,
Unlike the previous revision 7219, I now get the follwoing error when using spm_dcm_bmr.m with a Nsubject x Nmodels cell array of DCM file names. The problem seems to arise on line 96 when looping through different subjects' (rows) models columns).
[RCM,BMC] = spm_dcm_bmr(GCM);
Subscripted assignment dimension mismatch.
Error in spm_dcm_bmr (line 96)
par(:,j) = sparse(i,1,true,Np,1);
Error in spm_dcm_bmr (line 69)
[p,q] = spm_dcm_bmr(P(i,:),field);
Can anyone reproduce the problem ?
Best wishes
Martin
|