NOCIONS / letswave7

In developing
31 stars 7 forks source link

Letswave FFT filter error when dataset length is odd. #13

Closed ZZzeal closed 2 years ago

ZZzeal commented 3 years ago

Letswave version 20190422

File letswave7-master\LW_Core\CLW_buildFFTfilter.m

letswave_q1 letswave_q2

Modification suggestions

change to: Line 36: v((end+1)/2+1:end)=v((end-1)/2:-1:1);

ArCourtin commented 2 years ago

I experienced this problem just now. I fixed it that way: Line 36: v((end+1)/2:end)=v(2+(end-1)/2 : -1 :2);