diff --git a/config/snpm_bch_ui_PairT.m b/config/snpm_bch_ui_PairT.m index dee7b41..1ff0fb4 100644 --- a/config/snpm_bch_ui_PairT.m +++ b/config/snpm_bch_ui_PairT.m @@ -35,6 +35,9 @@ % Reuse flexible factorial component of SPM to get the design files and % associated conditions factorial_design = spm_cfg_factorial_design(); +if isa(factorial_design.val,'function_handle') + factorial_design.val = feval(factorial_design.val); +end sub_files = factorial_design.val{2}.values{end}.val{2}.val{1}; % We expect exactly two files per subject diff --git a/config/snpm_bch_ui_TwoSampPairT.m b/config/snpm_bch_ui_TwoSampPairT.m index e1965ef..06a1a11 100644 --- a/config/snpm_bch_ui_TwoSampPairT.m +++ b/config/snpm_bch_ui_TwoSampPairT.m @@ -28,6 +28,9 @@ % Reuse flexible factorial component of SPM to get the design files and % associated conditions factorial_design = spm_cfg_factorial_design(); +if isa(factorial_design.val,'function_handle') + factorial_design.val = feval(factorial_design.val); +end sub_files = factorial_design.val{2}.values{end}.val{2}.val{1}; % We expect exactly two files per subject