By using the wavelet toolbox it becomes possible to decompose and reconstruct a time series, e.g.
load leleccum;
s = leleccum(1:3920);
% decomposition
[c,l] = wavedec(s,3,'db5');
% Reconstruction
a0 = waverec(c,l,'db5');
From this, how is it possible to remove specific frequencies from the series? For example, once I have decomposed the series into its frequency components, how can I remove a frequency such as a daily cycle from it prior to reconstruction?
Example of signal with 24 unit cycle:
t = 1:365;
raw = 20+(10-2).*rand(1,length(t));
signal_1 = 10*sin(2*pi*t/24);
y = raw + signal_1; % example data series
% decomposition
[c,l] = wavedec(y,3,'db5');
How would you remove the signal with a periodicity of 24 i.e. 'signal_1' from the final series?