File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ Collaboration is welcome! This is still a work-in-progress. See [the roadmap](ht
33
33
34
34
``` julia
35
35
julia> Pkg. add (" AxisArrays" )
36
- using AxisArrays, Unitful
37
- import Unitful: s, ms, µs
36
+ julia > using AxisArrays, Unitful
37
+ julia > import Unitful: s, ms, µs
38
38
39
39
julia> rng = MersenneTwister (123 ) # Seed a random number generator for repeatable examples
40
- fs = 40000 # Generate a 40kHz noisy signal, with spike-like stuff added for testing
41
- y = randn (rng, 60 * fs+ 1 )* 3
42
- for spk = (sin .(0.8 : 0.2 : 8.6 ) .* [0 : 0.01 : .1 ; .15 : .1 : .95 ; 1 : - .05 : .05 ] .* 50 ,
40
+ julia > fs = 40000 # Generate a 40kHz noisy signal, with spike-like stuff added for testing
41
+ julia > y = randn (rng, 60 * fs+ 1 )* 3
42
+ julia > for spk = (sin .(0.8 : 0.2 : 8.6 ) .* [0 : 0.01 : .1 ; .15 : .1 : .95 ; 1 : - .05 : .05 ] .* 50 ,
43
43
sin .(0.8 : 0.4 : 8.6 ) .* [0 : 0.02 : .1 ; .15 : .1 : 1 ; 1 : - .2 : .1 ] .* 50 )
44
44
i = rand (rng, round (Int,.001 fs): 1 fs)
45
45
while i+ length (spk)- 1 < length (y)
You can’t perform that action at this time.
0 commit comments