0% found this document useful (0 votes)
2 views30 pages

DSP Lab - First 5 Experiments

The document outlines a series of experiments related to digital signal processing, including linear and circular convolution, FIR and IIR filter design, and spectrum analysis using MATLAB. It provides detailed procedures, MATLAB code snippets, and theoretical explanations for each experiment. The aim is to enhance understanding of signal processing concepts and practical applications using MATLAB software.

Uploaded by

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

DSP Lab - First 5 Experiments

The document outlines a series of experiments related to digital signal processing, including linear and circular convolution, FIR and IIR filter design, and spectrum analysis using MATLAB. It provides detailed procedures, MATLAB code snippets, and theoretical explanations for each experiment. The aim is to enhance understanding of signal processing concepts and practical applications using MATLAB software.

Uploaded by

ajayjesus66
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 30
INDEX LI F EXPERIMEN T Name of the Experiment \ S.No} Date Pageno | Marks | Signature \ ul3 124) nee na ct | We | \ A 2 | d)alan ion oF Sequences q-14 | 1po | | ind Circular nvolut I | | ic 3 |s)aren ae nd C ee tions oan) eS | ) y ‘i 4 Spect um Analysis using DFT - | Gtareal i sr| ag || S. Des of FIR Filters t \ | cyatda | ar window design) asl | ae | | B Desig: of FIR Filters (Hanning 9 | | fA) | window design) Be4| } - } \ c 64 | opie) Pesizn of HR Butterworth Filters G63~6 | b 6b G 1-186 Design of IIR Chebyshev Filters i pats| 7 f ve and random eh ae g Generation of sine wave and ran ie a HAlO noise : et 8 | G)y/@| Liner and circular convolution ene \S | eS s | a 9 Design of FIR Filters a | x G /ajee| ee Moll cu | ] 10 | G/4fan| Design of IIR Filters J a4 | SIAC Operation using Various Addressing iin 1 | Gu Jan Modes aon si | kdy tif Architecture of Digital Signa | one 3 | 12. | 6/4(o)Processor \ Res 8 ae HELLO GUYS...Pathu yeludhun ~5-ga Nandri!! Py 2025/02/22 14:14 Gojo & 2025/02/22 14:14 Gojo & ouTPUT. Enter N value 5 Enter the length of the ramp sequence 5 Enter the length of the exponential sequence Enteravalue 5 ORG Emplre 2S? i ab eee. 1S 4 2025/02/22 14:18 PROCEDURE 1 ae AhEMATLAB programs for discrete time sie ‘Cosine, Exponential, Unit impulse) using MA ; 3 3 ¥ ¥ 3 3 a 3 > = , 3 > 4 Sees 5 3 2 3 i ~/> / bos . I. a = 2 a 2025/02/22 14:18 Gojo & ay Mb i Gy boo Clie dadeg Ej 2025/02/22 14:19 Gojo § ouTPuT Enter the sequence x C 8.43.6] Enter the sequence y Cg, €.63 - teen Ger AB The resultant is 27 38, $0 Ra, he 100 a '); xlabel('Time period"); subplot(3,1,2); title('x(n)")5 stem(h); ylabel(‘Amplitude-->'); xlabel( ‘Time period’); title("h(n)"); subplot(3,1,3); Ze stem(y); } ylabel(‘Amplitude-~>'); xlabel('Time pepiod’); title(‘Circulér Convolution’); disp(‘the resultant signal is')3y ourruT Aafhas hea tobe bee beserccedi¢ ist sequence = econd sequence =[75 6 5 GS 3 the esullamsigaalis ¥ 2 Pag jou A (0S) e i el 5 el el = ont el »ll »il 0 Z a 4 7 > ws a 25 4 3 ~ Wiles ‘Wates Seti Tien, Vite Ys At as ss as hay uu se $4 KhaAd KK 6 a a ha ae THEORY Linear convolution in the basic operation to calculate the output for any linear time invarient system given its input and its impulse response Circular convolution is the same thing but considering the support of the Signal in periodic linear convolution is applicable for both continuous and discrete time signal its also for circular convolution. linear convolution and Circular convolution can be expressed as y(n)=x(n)"h(n) and y(n)= x(n)+h(n) linear convolution may or may not result in periodic output signal. The output of a circular convolution is always periodic and its period is specified the periods of one of its inputs. RESULT Mbit i ttt 2025/02/22 14:24 Gojo & ’ » » » ourpur 4 Input Sequenceisx: 0 | @» 5) . ‘The dft value are XK =[G, 4 o 2 5 "> > / Fi / 1 b oO of ; L ee oL— 3 08 eT a BU Py LT Pea e enon | xlabel(‘n'); ylabel( ‘Amplitude’ ); % Magnitude spectrum Mg=abs (XK); subplot (2, 2,3); stem(n,Mg) 5 title('Magnitude Spectrum’); xlabel(‘n'); ylabel (‘magnitude’); disp(‘Magnitude of fft is');e Phase spectrum An=angle(XK) 5 subplot(2,2,4)3 stem(n,An); title(‘Phase Spectrum’); xlabel(‘n') ylabel( Angle’); disp(‘angle of fft is');An PROCEDURE: 1. Start the MATLAB program 2, Open new M-file 3 pe the program Save in current directory 5. Compile and Run the program CALCULATION O° an A ne eee ry THEORY First the DFT can calculate a signals frequency Spectrum. This is a direct examination of information encoded in the frequency phase and amplitude of the component sinusoidals. For examples human speech and hearing all signals with its type of encoding. In signal processing time frequency analysis in a of techniques and method used for characteristics and manipulating signals whose statistics vary in time such as transistent signal frequency analysis is used in basic tool for the exynbanolyst. It ca used to identify the type of tiphes and can be used to identify the pl text tiphes text correspondances. RESULT DFT EXNOS DESIGN OF FIR FILTER USING WINDOWS TECHNIQU! DATE 6/4194 AIM GOO c.0 0.d.¢ To design a lowpass, highpass, bandpass and bandstop filters using Hanning, y and Kaiser Window. ’ ‘ APPARATUS REQUIRED: ; PC with MATLAB 2921 ’ PROGRAM: » Program for the design of FIR lowpass, high pass, band pass, band stop filter using hanning window cle; clear all; “i » close all; > rp=input(‘enter the passband ripple’); 3 rs=input(‘enter the stopband ripple"); nput(‘enter the passband frequency"); n=ceil(num/dém) ; ni=n+15 > nput("enter the stopband frequency’); > f=input(‘enter the sampling frequency’); *fp/F3 ’ nFs/F5 =e 20*1og10(sqrt{rp*rs))-A3; if(rem(n,2): dem=14.6*(fs-fp)/ » num=- n5 anning(n1); Ssagad a ee 777 eG 6d di OUTPUT- Hanning Window passband ripple 0.03 stopband ripple 0.01 Enter the passband fi:quency 1400 Enter the stopband frequency 2000 Enter the sampling frequency 8000 Nawrabee? hogar ey ~ 4 Normal 2% © ec ce

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy