Commit 74d6dafb authored by Sam Harrison's avatar 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
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';
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment