Closed vpKumaravel closed 2 years ago
swz dimension seems to be (channel x window) so only channels get sorted not windows. Your comment might be right if there is only one channel. @chkothe would you mind to confirm?
I have double checked that the code is correct so closing this report.
File: Clean_windows.m
Line 116: swz = sort(wz);
Since the Z-score values are sorted, the corresponding window indices also change. This change is probably not taken care of, leading to the wrong calculation of removed_samples (line 126).
Please confirm. Thanks. Best, Velu