DSP Report
DSP Report
DSP Report
IN MATLAB
BACHELOR OF TECHNOLOGY
in
by
N.PRATHYUSHA 218W1A04N8
(Autonomous)
(AFFILIATED TO JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY, KAKINADA)
(APPROVED BY AICTE)
(ACCREDITED BY NBA)
VIJAYAWADA - 520007
2023-24
CERTIFICATE
This is to certify that the Course-Based Project titled ‘DESIGN OF FIR FILTER USING
FREQUENCY SAMPLING METHOD IN MATLAB’ is being submitted
by,
N. PRATHYUSHA (218W1A04N8)
This record is a bonafide work carried under the guidance and supervision of,
ASSOCIATE PROFESSOR,
ECE DEPARTMENT,
ASSISTANT PROFESSOR,
ECE DEPARTMENT,
2
CONTENTS
1. INTRODUCTION...........................................................................................................4
2. MATLAB PROGRAM TO DESIGN FIR FILTER USING FREQUENCY SAMPLING
METHOD IN MATLAB ................................................................................................5
3. OUTPUT.........................................................................................................................6
4. CONCLUSION...............................................................................................................8
3
INTRODUCTION
In digital signal processing, filters are indispensable tools used for modifying or extracting
specific components from signals. FIR filters, known for their linear phase response and
stability, find applications in diverse fields such as audio and image processing,
telecommunications, and biomedical signal analysis. The Frequency Sampling Method
involves directly specifying the desired frequency response by sampling it at discrete
frequencies. This method provides an intuitive means to design filters according to desired
characteristics, enabling engineers to control the filter's behaviour at specific frequencies.
Finite Impulse Response (FIR) filters are essential tools in digital signal processing for
various applications such as audio processing, communication systems, and image
processing. The Frequency Sampling Method is one of the approaches used to design FIR
filters, allowing for the direct specification of the desired frequency response. This includes
the filtering of signals in both time and frequency domains, highlighting the effectiveness of
the designed filter in altering the spectral content of the input signal according to the desired
response.
4
MATLAB PROGRAM TO DESIGN FIR FILTER USING FREQUENCY
SAMPLING METHOD
5
subplot(211)
plot(t,sf)%plot the diagram after filtering
xlabel('time/s');ylabel('amplitude');title('Time-domain diagram after filtering')
axis([0.2 0.25 -2 2]);%set the range of image coordinates
subplot(212)
Fsf=fft(sf,512); AFsf=abs(Fsf);%frequency-domain and the amplitude diagram
f=(0:255)*fs/512;%frequency sampling
plot(f,AFsf(1:256))%plot the frequency domain diagram before filtering
xlabel('frequency/Hz');ylabel('amplitude');title('Frequency-domain diagram after
filtering');
OUTPUT:
6
Time and frequency domain graphs before filtering:
7
CONCLUSION:
Finite Impulse Response (FIR) filter is designed using the Frequency Sampling Method in
Matlab. The method's intuitive nature allows precise control over frequency responses,
showcasing flexibility in real-world applications such as noise reduction.