[Eeglablist] pop_resample() - potential bug?

Brian Harvey brian.harvey at biogen.com
Tue Apr 30 13:42:32 PDT 2024


Attempt at resampling a 500Hz dataset to 250Hz (decimation of 0.5) results in [p,q] variables that are inappropriate...  Looking into the script I see there are two different tolerances for rat() where one is commented out.

Correct  [p,q] values are returned when using the commented line (tolerance of 1e-4)

% finding the best ratio
% [p,q] = rat(freq/EEG.srate, 0.0001); % not used right now
[p,q] = rat(freq/EEG.srate, 1e-12); % used! AW


Brian Harvey

Neural Circuits

Biogen Inc.

brian.harvey at biogen.com




More information about the eeglablist mailing list