Skip to content

Commit 9a2f1cb

Browse files
committed
corrected HPF implementation by not downsampling the data. Note that this feature was correctly implemented in previous versions but appears to have been lost among some recent merges.
1 parent d204fca commit 9a2f1cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ft_entropyanalysis.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
cg_data = cell(nloops,1); % make cell: cg_data{istart}{trials}(chan-by-time)
334334
resamp_x = data_sel.trial;
335335
for is = 1:nloops % loop over starting points here!
336-
cg_data{is} = cellfun(@(resamp_x) resamp_x(:, is:(sc-1+1):end), resamp_x, 'UniformOutput', false ); % add padding% Filter
336+
cg_data{is} = cellfun(@(resamp_x) resamp_x(:, is:(stepSize-1+1):end), resamp_x, 'UniformOutput', false ); % add padding% Filter
337337
end
338338
clear resamp_x;
339339
case 'pointavg' % original point averaging coarse graining, no loop over starting points

0 commit comments

Comments
 (0)