.Wavelet.Examples.fileData_cwtn

Information

This function carries out continuous wavelet transform with graphic user interface. The data to be analyzed are to be read from the *.MAT data file that is generated by Dymola. The original data are shown in a curve. The transform result is shown in an image with pseudo-color. For showing this image, the 'Plot3D' library has to be available.

Since simple default values are provided with this function, a direct execution of this function without any extra input parameters will deliver a complete MRA analysis for an example. Due to large computational amount, this example will take some time (usually below 30 seconds) to show the transform results.

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

Interface

function fileData_cwtn
  input String fileName = "testSignal2.mat" "The MAT file containing the signal to be analyzed" annotation(
    Dialog(group = "Input data"));
  input String signalName = "y" "The signal name to be analyzed" annotation(
    Dialog(group = "Input data"));
  input Real t0 = 0.0 "Start time of the signal to be analyzed" annotation(
    Dialog(group = "Input data"));
  input Real t1 = 1.0 "End time of the signal to be analyzed" annotation(
    Dialog(group = "Input data"));
  input Real fs = 500.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." annotation(
    Dialog(group = "Input data"));
  input Real[:] scales = {i for i in 1:4:64} "Scales" annotation(
    Dialog(group = "Input data"));
  input Records.wavletDefinition wIn "Input parameters for wavelet filters and functions" annotation(
    Dialog(group = "Input data"));
end fileData_cwtn;

Generated at 2024-04-25T18:15:59Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos