"C++ implementation of low-pass, high-pass, and band-pass digital filters. The code also computes and plots the frequency response of each filter using GNU plot. A basic intro to Digital Signal Processing."
This repository contains a C++ program for low-pass, high-pass, and band-pass filtering of signals. The program also calculates and displays the frequency response of each filter.
The code uses the GNU plot library to create graphs of the original and filtered signals and their frequency responses.
The code requires the GNU plot library. You can download it from here.
To clone the repository, open a terminal and run:
git clone [https://github.com/<Your GitHub Username>/signal-filtering.git](https://github.com/SoroushJamali/DSP-Filters.git)
Compile the program with g++:
g++ main.cpp -o main
./main
The code creates four images representing the original and filtered signals and their frequency responses:
all.jpg: Shows the original signal and the output of the low-pass, high-pass, and band-pass filters.
LP.jpg: Shows the frequency response of the low-pass filter.
HP.jpg: Shows the frequency response of the high-pass filter.
BP.jpg: Shows the frequency response of the band-pass filter.