Skip to content

Commit 0421e4f

Browse files
committed
modified decode_arrayGeneralization.m to now decode per timepoint individually
1 parent bbca372 commit 0421e4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

decode_arrayGeneralization.m

+4-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@
7272

7373
tDec = tic;
7474
for iDec = 2:numD
75-
Xhat_curDec = feval(cfg0.decodefun, cfg0.decodecfg, decoder{iDec}, reshape(Y, [dimsSub, numT*numN]));
75+
Xhat_curDec = nan(prod(dimsOut), numT, numN);
76+
for it = 1:numT
77+
Xhat_curDec(:, it, :) = feval(cfg0.decodefun, cfg0.decodecfg, decoder{iDec}, squeeze(Y(:, it, :)));
78+
end
7679
Xhat(:, iDec, :, :) = reshape(Xhat_curDec, [prod(dimsOut), numT, numN]);
7780

7881
if (toc(tDec) > 2) && strcmp(cfg0.feedback, 'yes')

0 commit comments

Comments
 (0)