minor code changes
This commit is contained in:
parent
a085cd0ca2
commit
d2c60c8cba
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ function AllenBerkley_highpass100(x, fs)
|
|||
B2 = -R1 * R1
|
||||
A1 = -(1+R1)
|
||||
|
||||
for i = 1:length(x)
|
||||
for i = 1:eachindex(x)
|
||||
Y[3] = Y[2]
|
||||
Y[2] = Y[1]
|
||||
Y[1] = B2*Y[3] + B1*Y[2] + x[i]
|
||||
|
|
Loading…
Reference in a new issue