Skip to content

"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."

License

Notifications You must be signed in to change notification settings

SoroushJamali/DSP-Filters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSP-Filters

"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."

Signal Filtering

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.

Requirements

The code requires the GNU plot library. You can download it from here.

Installation

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)

Usage

Compile the program with g++:

g++ main.cpp -o main

Run the program:

./main

Outputs

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.

image/all.jpg

LP.jpg: Shows the frequency response of the low-pass filter.

image/LP.jpg

HP.jpg: Shows the frequency response of the high-pass filter.

image/HP.jpg

BP.jpg: Shows the frequency response of the band-pass filter.

image/BP.jpg

About

"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."

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages