Dear SPM experts,
I am now testing VB inference on single-subject datasets from
a simple block-design, V5-mapping experiment.
Is it safe to modify the line 23 of spm_design_contrasts.m:
if ~isfield( SPM, 'factor') % INSTEAD OF isempty( SPM.factor)
% Can't create contrasts if factorial design has not been specified
con=[];
return;
end
since otherwise I see an error:
??? Reference to non-existent field 'factor'.
==> F:\spm5b\spm_design_contrasts.m
Line 23 ==>if isempty(SPM.factor)
==> F:\spm5b\spm_config_fmri_est.m (run_est)
Line 545 ==> cons=spm_design_contrasts(SPM);
==> F:\spm5b\spm_jobman.m (run_struct1)
Line 1372 ==> feval(prog,val);
==> F:\spm5b\spm_jobman.m (run_struct1)
Line 1380 ==> run_struct1(c.val{i});
==> F:\spm5b\spm_jobman.m (run_struct1)
Line 1380 ==> run_struct1(c.val{i});
==> F:\spm5b\spm_jobman.m (run_struct)
Line 1339 ==>run_struct1(c);
After the modification, no error, and the results look reasonable.
But I'm afraid this might not be a sound solution. Best wishes,
Toshihiko Aso
Human Brain Research Center
Kyoto University Graduate School of Medicine, Kyoto, Japan
e-mail address:
[log in to unmask], ([log in to unmask])
TEL:81-75-751-3603 (office), 4656 (MRI room)
FAX:81-75-751-3202
|