You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not too important, but someone from our lab noticed that cfg.overlap, when used with "%..." does the opposite of what it's supposed to do. Instead of defining the overlap of consecutive windows in percent, it defines the step size of the windows in percent. This can be seen in the code at the beginning of ft_freqanalysis:
Not too important, but someone from our lab noticed that cfg.overlap, when used with "%..." does the opposite of what it's supposed to do. Instead of defining the overlap of consecutive windows in percent, it defines the step size of the windows in percent. This can be seen in the code at the beginning of ft_freqanalysis:
fieldtrip/ft_freqanalysis.m
Lines 305 to 307 in 87990ee
As overlap grows, the number of elements requested from linspace decreases instead of increases.
Test based on those lines of code:
The result is that step is equal to overlap:
A solution could be to add the following line after line 305 in ft_freqanalysis, to invert overlap:
overlap = 1 - overlap;
Which fixes it.
The result is as expected, with step decreasing as overlap increases:
The text was updated successfully, but these errors were encountered: