This function generates the complex Morlet wavelet function. It has no scaling function. Since complex Morlet wavelet has theoretically unlimited support, the function range has to be defined with [low, high].
function wavXMorlet import Modelica.Constants.pi; import Modelica_LinearSystems2.Math.Complex; input Real low = -4 "Lower boundary of the function"; input Real high = 4 "Higher boundary of the function"; input Integer points = 32 "Number of data points of the returned functions"; input Real fb = 1 "Band width"; input Real fc = 1 "Center frequency, e.g. 0.1, 0.5, 1, 1.5, ..."; output Real x[points] "Regular grid"; output Complex psi[points] "Wavelet function"; end wavXMorlet;