From 2ffbbdb34051d67b987ac3d2fb8efbd05bccfa72 Mon Sep 17 00:00:00 2001 From: Thomas Henry Colligan IV Date: Tue, 21 May 2019 15:30:00 -0600 Subject: [PATCH] Removed subtraction of mean of time series from wavelet code --- wave_matlab/wavelet.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wave_matlab/wavelet.m b/wave_matlab/wavelet.m index 36efa46..ba7b02c 100644 --- a/wave_matlab/wavelet.m +++ b/wave_matlab/wavelet.m @@ -109,7 +109,7 @@ if (J1 == -1), J1=fix((log(n1*dt/s0)/log(2))/dj);, end if (mother == -1), mother = 'MORLET';, end %....construct time series to analyze, pad if necessary -x(1:n1) = Y - mean(Y); +x(1:n1) = Y; %- mean(Y); if (pad == 1) base2 = fix(log(n1)/log(2) + 0.4999); % power of 2 nearest to N x = [x,zeros(1,2^(base2+1)-n1)];