-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsmooth.m
26 lines (20 loc) · 932 Bytes
/
smooth.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
%-----------------------------------------------------------------------
% Job saved on 18-Apr-2024 16:01:57 by cfg_util (rev $Rev: 7345 $)
% spm SPM - SPM12 (7771)
% cfg_basicio BasicIO - Unknown
%-----------------------------------------------------------------------
%%
home = getenv('HOME');
root = fullfile(home, 'spmbasics', '/data/output/face_rep_gui')
func = spm_select('FPList', fullfile(root,'RawEPI'), '^warsM.*\.img$');
scriptdir = fullfile(home, 'spmbasics', '/src/event_related_gui/preprocessing/matfiles');
disp('Starting preprocessing...');
matlabbatch{1}.spm.spatial.smooth.data(1) = {cellstr(func)};
%%
matlabbatch{1}.spm.spatial.smooth.fwhm = [8 8 8];
matlabbatch{1}.spm.spatial.smooth.dtype = 0;
matlabbatch{1}.spm.spatial.smooth.im = 0;
matlabbatch{1}.spm.spatial.smooth.prefix = 's';
disp('Completed preprocessing...')
save(fullfile(scriptdir,'smooth.mat'),'matlabbatch');
spm_jobman('run',matlabbatch);