Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
profumo
PFM_Simulations
Commits
74d6dafb
Commit
74d6dafb
authored
Dec 03, 2019
by
Sam Harrison
Browse files
Basic error check in `saveNIfTIs.m`
Make sure the NIfTI is at least a size that we can save.
parent
6743d388
Changes
1
Hide whitespace changes
Inline
Side-by-side
IO/saveNIfTIs.m
View file @
74d6dafb
function
saveNIfTIs
(
D
,
directory
,
params
)
assert
(
mod
(
params
.
V
,
100
)
==
0
,
'`params.V` must be divisible by 100!'
)
% Prepare NIfTI
vsize
=
[
1
1
1
params
.
TR
];
vtype
=
'f'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment