'scales' has 'numScales' entries (each > 0); 'w0' is the Morlet wavelet's center frequency parameter (5-6 is the standard choice — high enough to satisfy the admissibility condition without truncating the wavelet's own oscillation). 'out' must have room for numScalessignalLen Complex values, row-major by scale (row si covers out[sisignalLen .. si*signalLen+signalLen-1]).