Digital Signal Processing: Name Registration Number Class Instructor Name
Digital Signal Processing: Name Registration Number Class Instructor Name
EEL-325
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
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.
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:
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.