From 215a38d03f41160ad19a9fa7ee751d4312d9501b Mon Sep 17 00:00:00 2001 From: Benedikt Ehinger Date: Wed, 16 Oct 2019 12:14:43 +0200 Subject: [PATCH] bugfix option matlab, the channels were wrongly preallocated --- src/uf_toolbox/uf_glmfit_nodc.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/uf_toolbox/uf_glmfit_nodc.m b/src/uf_toolbox/uf_glmfit_nodc.m index 45d722d..2d6d8af 100644 --- a/src/uf_toolbox/uf_glmfit_nodc.m +++ b/src/uf_toolbox/uf_glmfit_nodc.m @@ -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')