function cfs = CWT_ECG(input)

% Copyright 2020 The MathWorks, Inc.

%Wavelet Transformation
persistent filterBank
siglen = numel(input);
if isempty(filterBank)
    filterBank = cwtfilterbank('SignalLength',siglen,'VoicesPerOctave',6);
end
%CWT conversion
cfs = abs(filterBank.wt(input));
end

