Skip to content

Commit

Permalink
fix octave bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Aug 19, 2023
1 parent 298c37f commit 0410995
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bids_model/addConfoundsToDesignMatrix.m
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@
% remove empty and duplicate
toClean = cellfun(@(x) isempty(x), designMatrix);
designMatrix(toClean) = [];

if isempty(designMatrix)
return
end
if size(designMatrix, 1) > 1
designMatrix = designMatrix';
end
Expand Down

0 comments on commit 0410995

Please sign in to comment.