Hi all,
I have a nested cell array c (12600,1). Each cell array contains time series with varying length. I want to denoise each of these time series using a db-10 wavelet with 8 levels of decomposition using SWT denoising-1D in the Wavelet Analyzer toolbox.
SWT denoising requires that for 8 levels of decomposition, the length of the input time series should be a multiple of 2^8 (i.e 256). That is, the length of my time series should be multiples of 256 ( 256, 512,768 etc…). So for all the cell arrays, I want to alter the length of the time series to be muliples of 256 by removing some data points in the time series. For ex: if the length of time series is 6000×1, I want to make it to 5888×1 by removing data points and I want to do this for all cell arrays in the nested cell array.
How do I do this?
Thanks,
P.S: I tried using the signal extension toolbox for this case, but the additional data points added to the time series altered my analysis results. Hence I rather remove data points from my time series (shorten) than add additional artificial data points (extend) to the length of time series.
Best Answer