Merge pull request #68 from ltcptgeneral/jason-branch-new

Update distortion_filter.m
This commit is contained in:
Arthur Lu 2021-12-12 22:13:23 -08:00 committed by GitHub
commit 2d72b54e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ function y = distortion_filter(input, fs, LOW, MED, HIGH)
outputW = fftshift(fft(input)); outputW = fftshift(fft(input));
for i = 1:length(outputW) for i = 1:length(outputW)
if ((LOW < abs(F(n))) && HIGH > abs(F(n))) if ((LOW < abs(f(i))) && HIGH > abs(f(i)))
outputW(i) = outputW(i) / LOW; outputW(i) = outputW(i) / LOW;
end end
end end