Skip to content

Commit

Permalink
adjust model to the number of unique slice time (= adjust to MB)
Browse files Browse the repository at this point in the history
  • Loading branch information
CPernet authored Oct 30, 2024
1 parent aaa8d24 commit 82d2acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bids/spmup_BIDS_1rstlevel.m
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
delete(fullfile(check_mat.folder,check_mat.name))
end
end
N = length(subject.func_metadata{1}.SliceTiming);
N = length(unique(subject.func_metadata{1}.SliceTiming));
matlabbatch{1}.spm.stats.fmri_spec.dir = {Statspath};
matlabbatch{1}.spm.stats.fmri_spec.timing.units = 'secs';
matlabbatch{1}.spm.stats.fmri_spec.timing.RT = subject.func_metadata{1}.RepetitionTime;
Expand Down

0 comments on commit 82d2acd

Please sign in to comment.