From 122351f837912610a47fa30d875541d16ac7070e Mon Sep 17 00:00:00 2001 From: jscastanoc Date: Thu, 21 Sep 2017 17:28:26 +0200 Subject: [PATCH] fix fastICA call when using epoched data with N ica_components < N channels --- processing/proc_fastICA.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing/proc_fastICA.m b/processing/proc_fastICA.m index 21d0874..07d678a 100644 --- a/processing/proc_fastICA.m +++ b/processing/proc_fastICA.m @@ -89,7 +89,7 @@ %% make sure to put the data in the correct format in case it was epoched if is_epoched - X_ica = permute(reshape(icasig', [Te, Ne, Nc]), [1,3,2]); + X_ica = permute(reshape(icasig', [Te, Ne, size(icasig,1)]), [1,3,2]); else X_ica = icasig'; end