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
| Type | Name | Default | Description |
|---|---|---|---|
| String | fileName | "testSignal2.mat" | The MAT file containing the signal to be analyzed |
| String | signalName | "y" | The signal name to be analyzed |
| Real | t0 | 0.0 | Start time of the signal to be analyzed |
| Real | t1 | 1.0 | End time of the signal to be analyzed |
| Real | fs | 200.0 | Sampling 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.wavletDefinition | wd | Wavelet definition. Note: Only (bi)orthogonal wavelets can be used for MRA. Valid parameters are wavID (<=7), Nd, Nr and range (dMeyer) | |
| Records.denoisParameters | dp | Data and parameters for wavelet denoising |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real[:] | y | Denoised signal | |
| Real[:] | noise | Noise removed from signal | |
| Real[:] | c | Original wavelet coefficients of all levels, details see wavDec() | |
| Real[:] | cth | Wavelet coefficients of all levels after applying thresholds | |
| Integer[:] | len | Lengths of coefficients for each levels, details see wavDec() |