Skip to content

Commit 58106dd

Browse files
committed
Fix README so copy and paste works in the REPL.
1 parent bf11fc5 commit 58106dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ Collaboration is welcome! This is still a work-in-progress. See [the roadmap](ht
1414

1515
```julia
1616
julia> Pkg.add("AxisArrays")
17-
using AxisArrays, Unitful
18-
import Unitful: s, ms, µs
17+
julia> using AxisArrays, Unitful
18+
julia> import Unitful: s, ms, µs
1919

2020
julia> rng = MersenneTwister(123) # Seed a random number generator for repeatable examples
21-
fs = 40000 # Generate a 40kHz noisy signal, with spike-like stuff added for testing
22-
y = randn(rng, 60*fs+1)*3
23-
for spk = (sin.(0.8:0.2:8.6) .* [0:0.01:.1; .15:.1:.95; 1:-.05:.05] .* 50,
21+
julia> fs = 40000 # Generate a 40kHz noisy signal, with spike-like stuff added for testing
22+
julia> y = randn(rng, 60*fs+1)*3
23+
julia> for spk = (sin.(0.8:0.2:8.6) .* [0:0.01:.1; .15:.1:.95; 1:-.05:.05] .* 50,
2424
sin.(0.8:0.4:8.6) .* [0:0.02:.1; .15:.1:1; 1:-.2:.1] .* 50)
2525
i = rand(rng, round(Int,.001fs):1fs)
2626
while i+length(spk)-1 < length(y)

0 commit comments

Comments
 (0)