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
3333
3434``` julia
3535julia> 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
3838
3939julia> 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 ,
4343 sin .(0.8 : 0.4 : 8.6 ) .* [0 : 0.02 : .1 ; .15 : .1 : 1 ; 1 : - .2 : .1 ] .* 50 )
4444 i = rand (rng, round (Int,.001 fs): 1 fs)
4545 while i+ length (spk)- 1 < length (y)
You can’t perform that action at this time.
0 commit comments