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
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.
The outputs are the y axis values which are created and stored in the .txt files.
- The sine2.txt file contains the sine wave
- The noisy_signal2.txt contains the noisy signal
- The filtered_signal2.txt contains the filteres signal
These .txt files can be plotted using gnuplot application
- Noisy signal
- Sine wave/ Expected output
- Filtered output