Skip to content

PritamSS/Butterworth-filter-in-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Butterworth-filter-in-C

A low pass butterworth filter was implemented in C where the user can input the amplitude and the output are three text files with the desired sine signal which should be the output, the noisy signal and the filtered signal the true output

Implementation

The function, ButterworthLowpassFilter0050SixthOrder, is the one which does the filtering of the noisy signal which has the coefficients values set. since it is a sixth order filter six coefficient values are set. The noisy signal is created by adding random values to the sine wave then these values are passed through the function which filters this signal.

Output

The outputs are the y axis values which are created and stored in the .txt files.

  1. The sine2.txt file contains the sine wave
  2. The noisy_signal2.txt contains the noisy signal
  3. The filtered_signal2.txt contains the filteres signal

These .txt files can be plotted using gnuplot application

  1. Noisy signal

img1

  1. Sine wave/ Expected output

img2

  1. Filtered output

img3

About

C program to implement butterworth filter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages