-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmc_SetSPMDefaults.m
More file actions
32 lines (26 loc) · 974 Bytes
/
mc_SetSPMDefaults.m
File metadata and controls
32 lines (26 loc) · 974 Bytes
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
27
28
29
30
function mc_SetSPMDefaults(spmdefaults)
% A utility function to set SPM8 default values
% FORMAT mc_SetSPMDefaults(spmdefaults);
%
% spmdefaults A cell array containing SPM default fields to set.
% For example:
% spmdefaults = {
% 'mask.thresh' 0.5;
% 'stats.fmri.ufp' 0.05;
% };
%
% NOTE: At the moment this function only supports the setting of SPM
% defaults (as contained in the defaults global variable). It does not yet
% allow setting of defaults for VBM (contained in the vbm8 global
% variable).
global defaults;
if (isempty(spmdefaults))
return;
end
if (~iscell(spmdefaults))
mc_Error('mc_SetSPMDefaults requires a cell array but was passed something else. Check your spmdefaults variable.');
return;
end
for iDefault = 1:size(spmdefaults,1)
spm_get_defaults(spmdefaults{iDefault,1},spmdefaults{iDefault,2});
end