This function carries out continuous wavelet transform of a chirp signal with graphic user interface. The data to be analyzed are given as default input values in the function. The original data are shown with a curve. The transform result will be 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.
Refer to the description of Families for detailed information about the available wavelets.
function cwtChirpImage import Modelica_LinearSystems2.Utilities.Plot.Records.Diagram; import Modelica_LinearSystems2.Utilities.Plot.Records.Curve; input Real[:] signal = {1.0000, 1.0000, 0.9999, 0.9996, 0.9987, 0.9968, 0.9933, 0.9877, 0.9790, 0.9665, 0.9491, 0.9257, 0.8954, 0.8568, 0.8091, 0.7510, 0.6818, 0.6008, 0.5075, 0.4020, 0.2847, 0.1566, 0.0194, -0.1245, -0.2720, -0.4192, -0.5614, -0.6932, -0.8089, -0.9022, -0.9672, -0.9981, -0.9901, -0.9397, -0.8452, -0.7074, -0.5297, -0.3186, -0.0837, 0.1623, 0.4043, 0.6256, 0.8087, 0.9371, 0.9970, 0.9785, 0.8779, 0.6985, 0.4518, 0.1572, -0.1588, -0.4646, -0.7266, -0.9127, -0.9970, -0.9634, -0.8096, -0.5491, -0.2111, 0.1616, 0.5174, 0.8026, 0.9702, 0.9879, 0.8457, 0.5600, 0.1736, -0.2491, -0.6323, -0.9017, -1.0000, -0.9003, -0.6148, -0.1960, 0.2705, 0.6827, 0.9443, 0.9880, 0.7949, 0.4037, -0.0939, -0.5730, -0.9055, -0.9959, -0.8104, -0.3923, 0.1445, 0.6439, 0.9522, 0.9671, 0.6743, 0.1591, -0.4140, -0.8520, -0.9988, -0.7935, -0.2997, 0.3091, 0.8072, 1.0000} "Vector, the signal to be analyzed"; input Real[:] scales = {i for i in 1:16} "Scales"; input Records.wavletDefinition wIn "Input parameters for wavelet filters and functions"; end cwtChirpImage;