Skip to content

Commit

Permalink
Merge pull request #27 from henry2004y/fix_readme_demo
Browse files Browse the repository at this point in the history
Patch for Wavelets fix
  • Loading branch information
dsweber2 authored Nov 15, 2021
2 parents 712e04c + 61c1f50 commit 325dd8c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,17 @@ julia> using Wavelets
Basic usage example on a doppler test function.
```julia
using ContinuousWavelets, Plots, Wavelets
n=2047;
n = 2047;
t = range(0,n/1000,length=n); # 1kHz sampling rate
f = testfunction(n, "Doppler");
p1=plot(t, f,legend=false,title="Doppler",xticks=false)
p1 = plot(t, f,legend=false,title="Doppler",xticks=false)
c = wavelet(Morlet(π), β=2);
res = ContinuousWavelets.cwt(f, c)
# plotting
freqs = getMeanFreq(computeWavelets(n, c)[1])
freqs = getMeanFreq(ContinuousWavelets.computeWavelets(n, c)[1])
freqs[1] = 0
p2=heatmap(t,freqs, abs.(res)', xlabel= "time (s)", ylabel="frequency (Hz)",colorbar=false)
l=@layout [a{.3h};b{.7h}]
p2 = heatmap(t,freqs, abs.(res)', xlabel= "time (s)", ylabel="frequency (Hz)",colorbar=false)
l = @layout [a{.3h};b{.7h}]
plot(p1,p2,layout=l)
```
![Doppler](/docs/doppler.svg)
Expand Down

0 comments on commit 325dd8c

Please sign in to comment.