Skip to content

Commit

Permalink
bugfix option matlab, the channels were wrongly preallocated
Browse files Browse the repository at this point in the history
  • Loading branch information
behinger committed Oct 16, 2019
1 parent 5f72ad6 commit 215a38d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uf_toolbox/uf_glmfit_nodc.m
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
spparms('spumoni',2)
end
for c = cfg.channel
beta(:,:,c) = X \ squeeze(data(c,:,:))';
beta(c,:,:) = (X \ squeeze(data(c,:,:))')';
end
beta = permute(beta,[3 2 1]);
% beta = permute(beta,[3 2 1]);

elseif strcmp(cfg.method,'glmnet')
warning('time-basis function currently not implemented')
Expand Down

0 comments on commit 215a38d

Please sign in to comment.