functionfileDataDenoising

Denoising of the simulation result read from a MAT file

Information

This function carries out denoising operation to the one-dimensional data read from a specified *.MAT file, which is a simulation database generated by Dymola. The original data, the decomposed data in different levels, the denoised data in all levels and the denoised data are displayed with diagrams. In addition, the noise that is removed from the signal is displayed in a diagram, too.

The default input values provide an example to show the functionality of this function.

Refer to the description of Families for detailed information about the available wavelets.

Inputs

TypeNameDefaultDescription
StringfileName"testSignal2.mat"The MAT file containing the signal to be analyzed
StringsignalName"y"The signal name to be analyzed
Realt00.0Start time of the signal to be analyzed
Realt11.0End time of the signal to be analyzed
Realfs200.0Sampling frequency of the signal for analysis. This is used to generate an equidistant time grid with the expected time step. If fs == 0, the simulation time grid will be used, even if it is none-equidistant. Since wavelet analysis has to be done in equidistant time grid, non-equidistant time grids usually cause incorrect results.
Records.wavletDefinitionwdWavelet definition. Note: Only (bi)orthogonal wavelets can be used for MRA. Valid parameters are wavID (<=7), Nd, Nr and range (dMeyer)
Records.denoisParametersdpData and parameters for wavelet denoising

Outputs

TypeNameDefaultDescription
Real[:]yDenoised signal
Real[:]noiseNoise removed from signal
Real[:]cOriginal wavelet coefficients of all levels, details see wavDec()
Real[:]cthWavelet coefficients of all levels after applying thresholds
Integer[:]lenLengths of coefficients for each levels, details see wavDec()