0% found this document useful (0 votes)
102 views8 pages

Digital Signal Processing: Name Registration Number Class Instructor Name

Digital Signal Processing Lab #08 focuses on filter design and applications. [1] Minimum order low pass and high pass filters were designed to suppress frequencies above 4kHz and pass frequencies above 8kHz, respectively. [2] Band pass and band stop filters were designed for the 6kHz-15kHz range. [3] The designed filters were applied to an audio signal; the outputs were plotted and listened to observe the effect of each filter type.

Uploaded by

ali khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
102 views8 pages

Digital Signal Processing: Name Registration Number Class Instructor Name

Digital Signal Processing Lab #08 focuses on filter design and applications. [1] Minimum order low pass and high pass filters were designed to suppress frequencies above 4kHz and pass frequencies above 8kHz, respectively. [2] Band pass and band stop filters were designed for the 6kHz-15kHz range. [3] The designed filters were applied to an audio signal; the outputs were plotted and listened to observe the effect of each filter type.

Uploaded by

ali khan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Digital Signal Processing

EEL-325

Name Muhammad Ali Khan

Registration Number

Class BCE

Instructor name
Lab # 08
Filter Designing through FDA Tool
In Lab Tasks:
Task 1:
Design a “minimum order” low pass filter to suppress all frequencies above 4kHz. Mention the
application of such a filter.

Filter designer

Filter visualization

Applications
Low pass filters are used to filter noise from a system. 'Noise' is a high frequency signal. When
passed through a low pass filter most of the noise is removed and a clear sound is produced. high-cut
or treble cut filters.
Task 2:
Design a “minimum order” high pass filter to pass all frequencies above 8kHz. Mention the
application of such a filter.

Filter designer

Filter visualization

Applications
A high pass filter is used in circuits that only require high frequencies to operate. It
blocks most low frequencies & DC component.in the above case we only pass the
frequency above the 8khz
Task 3:
For a frequency range of ‘6kHz – 15kHz’, design band pass and band stop filters.

Filter designer

Filter visualization
Band Stop:

Applications

Band pass Filter

Bandpass filters are widely used in wireless transmitters and receivers. The main function of such a
filter in a transmitter is to limit the bandwidth of the output signal to the band allocated for the
transmission. This prevents the transmitter from interfering with other stations.
In a receiver, a bandpass filter allows signals within a selected range of frequencies to be heard or
decoded, while preventing signals at unwanted frequencies from getting through.
Signals at frequencies outside the band which the receiver is tuned at, can either saturate or damage
the receiver. Additionally, they can create unwanted mixing products that fall in band and interfere
with the signal of interest. Wideband receivers are particularly susceptible to such interference. [3] A
bandpass filter also optimizes the signal-to-noise ratio and sensitivity of a receiver.

Band Stop Filter


 In different technologies, these filters are used at different varieties.
 In telephone technology, these filters are used as the telephone line noise reducers and DSL
internet services.
 These are widely used in the electric guitar amplifiers. This electric guitar produces a ‘hum’ at
60 Hz frequency.
 These are used to reduce the static on radio, which are commonly used in our daily life.
 In image and signal processing these filters are highly preferred to reject noise.

Task 4:
Take an audio signal and apply the filters made in previous tasks on that audio signal. Then plot and
listen to the audio signal again and comment on the outputs.

Code
recObj = audiorecorder(12000, 16, 2);
fs=44100 %sampling frequency
get(recObj) % To Check details of the created recording object
recObj = audiorecorder; % Start recording
disp('Start speaking.')
recordblocking(recObj, 10); % Set the time of recording, 10 sec in this case
disp('End of Recording.');
myRecording = getaudiodata(recObj); % Get audio data out of the recording
% Plot the waveform.
subplot 221
plot(myRecording);

xlabel('Recorded Signal')
a=1

sound(myRecording);
y=filtfilt(Hd.numerator,a,myRecording)
subplot 222
plot(y)
xlabel('After Appling filter')
% Plot the audio data
%play (myRecording);
% Play the audio data
sound(y); % Another way to Play the audio data
Outputs

Lowpass Filter:

High Pass filter:

Band Pass Filter


Band stop Filter:

Conclusion:
In this lab we have read about different types of filter and then try to design low pass, high pass,
band pass and band stop according to the given task. In the last we have applied that filter on an
audio signal and understand the result. I performed all the given task successfully.

You might also like