Permalink
Browse files

a final working version of rd_qualityControl

  • Loading branch information...
1 parent 2c6c459 commit 7bc085becdcdc8a8fab0abe42bbc1f3c272d4678 @alinal alinal committed Feb 24, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 users/Rachel/LGN_Code/rd_qualityControl.m
@@ -30,7 +30,7 @@
% add session name to figure
h1 = axes('Position', [0 0 1 1], 'Visible', 'off');
-text(0.5, 0.01, sprintf('%s First image:%s', f, epis{1}), 'HorizontalAlignment','center');
+text(0.5, 0.01, sprintf('%s First image: %s', f, epis{1}), 'HorizontalAlignment','center');
%save the output figure
saveas(gcf,'tsdiffana_output.pdf')
@@ -39,6 +39,10 @@
% spm_imcalc_ui('epi01_hemi_mcf.nii', 'myseries_mean.nii', 'mean(X)', {1;0;4;0})
spm_imcalc_ui(epis, ['mean' epis{1}], 'mean(X)', {1;0;4;0})
+% make var image
+% spm_imcalc_ui(epis, ['var' epis{1}], 'var(X)', {1;0;4;0}) % identical to
+% tsdiffana's vmean
+
% delete the epi niftis from the QualityControl directory
!rm epi*.nii

0 comments on commit 7bc085b

Please sign in to comment.