Hi,
I’m trying to get the same output as with a default cwt(x,fs) Matlab function call, where x is a signal and fs its sample rate. Could anyone help me? Here’s what I have done so far, but I don’t know how to include sample rate here for instance:
using ContinuousWavelets, Wavelets
function getcwt(d)
n = length(d)
c = wavelet(Morlet())
freqs = getMeanFreq(computeWavelets(n, c)[1])
a = cwt(d,c)
return(a,freqs)
end
Any help would be greatly appreciated! ![]()