Skip to content

Commit

Permalink
Update cat_vol_defs.m
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianGaser committed Jan 31, 2024
1 parent 0532d66 commit 4e95a5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cat_vol_defs.m
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
% only estimate composite if job field is given
if nargin > 1
% only move on if any vox or bb field is not NaN
if any(isfinite(job.vox)) | any(isfinite(job.bb))
if any(isfinite(job.vox)) || any(isfinite(job.bb))
Def1 = Def;
mat1 = mat;
job.vox(~isfinite(job.vox)) = vx(~isfinite(job.vox));
Expand Down Expand Up @@ -150,7 +150,7 @@

% Generate headers etc for output images
%----------------------------------------------------------------------
[pth,nam,ext] = spm_fileparts(deblank(filenames(i,:))); %#ok<ASGLU>
[pth,nam,ext] = spm_fileparts(deblank(filenames(i,:)));
NI = nifti(fullfile(pth,[nam ext]));
j_range = 1:size(NI.dat,4);
k_range = 1:size(NI.dat,5);
Expand Down Expand Up @@ -282,7 +282,7 @@
end
end

end;
end
return;

%==========================================================================
Expand Down

0 comments on commit 4e95a5c

Please sign in to comment.