From cd981223d3c17e6eca64715867f03b05bb52ad42 Mon Sep 17 00:00:00 2001 From: Ceren Date: Wed, 17 Feb 2021 14:06:42 +0100 Subject: [PATCH 1/2] adapted for looping through subjects --- src/workflows/bidsConcatBetaTmaps.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/workflows/bidsConcatBetaTmaps.m b/src/workflows/bidsConcatBetaTmaps.m index 95324f42..d032bce0 100644 --- a/src/workflows/bidsConcatBetaTmaps.m +++ b/src/workflows/bidsConcatBetaTmaps.m @@ -57,10 +57,13 @@ function bidsConcatBetaTmaps(opt, funcFWHM, deleteIndBeta, deleteIndTmaps) % beta maps outputName = ['4D_beta_', num2str(funcFWHM), '.nii']; + + matlabbatch = []; matlabbatch = setBatch3Dto4D(matlabbatch, beta_maps, RT, outputName); % t-maps outputName = ['4D_t_maps_', num2str(funcFWHM), '.nii']; + matlabbatch = setBatch3Dto4D(matlabbatch, t_maps, RT, outputName); saveAndRunWorkflow(matlabbatch, 'concat_betaImg_tMaps', opt, subID); From 82f939032780d59803923e5d95273071c6e436bd Mon Sep 17 00:00:00 2001 From: Ceren Date: Wed, 17 Feb 2021 14:13:32 +0100 Subject: [PATCH 2/2] mh fix --- src/workflows/bidsConcatBetaTmaps.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/workflows/bidsConcatBetaTmaps.m b/src/workflows/bidsConcatBetaTmaps.m index d032bce0..b2a6ff46 100644 --- a/src/workflows/bidsConcatBetaTmaps.m +++ b/src/workflows/bidsConcatBetaTmaps.m @@ -57,13 +57,13 @@ function bidsConcatBetaTmaps(opt, funcFWHM, deleteIndBeta, deleteIndTmaps) % beta maps outputName = ['4D_beta_', num2str(funcFWHM), '.nii']; - + matlabbatch = []; matlabbatch = setBatch3Dto4D(matlabbatch, beta_maps, RT, outputName); % t-maps outputName = ['4D_t_maps_', num2str(funcFWHM), '.nii']; - + matlabbatch = setBatch3Dto4D(matlabbatch, t_maps, RT, outputName); saveAndRunWorkflow(matlabbatch, 'concat_betaImg_tMaps', opt, subID);