Skip to content

Commit

Permalink
improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Uwe Fechner committed Nov 24, 2024
1 parent 7990aee commit e7a0ed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/test_butter.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ include("plotting.jl")
# Define the cut-off frequency in Hz
cut_off_freq = 2.0

# Define the sampling time in seconds
# Define the sampling and simulation time in seconds
dt = 0.05
sim_time = 4.0
N = Int(sim_time / dt)

# Design the filter
butter = create_filter(cut_off_freq; order=4, dt)

# Create an array of measurements
# Create an array of measurements (step signal)
measurements = zeros(N)
for i in Int(N/2):N
measurements[i] = 1.0
Expand Down

0 comments on commit e7a0ed8

Please sign in to comment.