0% found this document useful (0 votes)
32 views2 pages

Laboratory 02 Generation of Different Discrete Time Signal

This document outlines 10 experiments for a digital signal processing lab course. The experiments involve: 1) Generating discrete time signals like the Dirac delta and unit step functions. 2) Plotting the real, imaginary, magnitude and phase of a complex exponential signal. 3) Designing a program to convert between Fahrenheit and Kelvin temperatures. 4) Plotting multiple signals on the same graph. 5) Generating and plotting a song containing musical notes. 6) Plotting a time shifted sequence. 7) Plotting a signal with user-defined amplitude and phase. 8) Calculating the average power of a complex signal. 9) Demonstrating that a square

Uploaded by

Michael George
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views2 pages

Laboratory 02 Generation of Different Discrete Time Signal

This document outlines 10 experiments for a digital signal processing lab course. The experiments involve: 1) Generating discrete time signals like the Dirac delta and unit step functions. 2) Plotting the real, imaginary, magnitude and phase of a complex exponential signal. 3) Designing a program to convert between Fahrenheit and Kelvin temperatures. 4) Plotting multiple signals on the same graph. 5) Generating and plotting a song containing musical notes. 6) Plotting a time shifted sequence. 7) Plotting a signal with user-defined amplitude and phase. 8) Calculating the average power of a complex signal. 9) Demonstrating that a square

Uploaded by

Michael George
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

EC302:DigitalSignalProcessing,201011

PreparedBy:Prof.M.C.Patel,
ElectronicsEngineeringDepartment,
S.V.NationalInstituteofTechnology,Surat.
Laboiatoiy u2
ueneiation of Biffeient
Bisciete time signal
(1)Implementthe(n)function,alsoimplementthefunction(nk)wherethekisuserdefined.
(2)Implementtheu(n)function.Alsoimplementthefunction(nk)wherethekisuserdefined.
Repeattheabovefunctionforfoldedsequences.
(3)Repeattheq2fortherampfunction.
(4)Thefunctionis(t) = 4 - c
]wn
,ifw=2*pi*500;n=1000sample.
Plotthefunctions.Plottherealpartoffunction.AlsoplottheImaginarypart,Magnitudeandphase
ofthefunction
(4)DesignthematlabprogramthataccepttheinputtemperatureindegreeFahrenheitfromthe
commandwindow(takehelpofinput),ConvertintoanabsolutetemperatureinKelvin,writesout
theresults(takehelponfprintf).
I(in kcl:in) = _
S
9
- I(in ) - S2] + 27S.1S

(5)Implementthefollowingexpressionandusingcommandplot.Displaytheentireresultingcurve
inthesamewindow.
X
1
(t) = S + 6 - cos(t),
1
(t) = -2 + 9 - sin(t),
X
2
(t) = 7 + 2 - cos(t - 4S),
1
(t) = 8 + 6 - sin(t + Su)

(6)ThemusicnoteSa,Re,Ga,Ma,Pa,Dha,Ni,Sacontainsthefrequency440Hz,
493.88Hz,554.37Hz,587.33Hz,659.26Hz,739.99Hzrespectively.Generatethesongifitcontainsthe
noteas[saregasaganiphdha].Plottheabovesignal.(Usewavplaytoplaysongonspeaker).
(7)Asequenceisgivenby
x(n) = (6 - n), or u n S,
writetheprogramtoplotthesequencesy|n] = x|4 - n].
(8)Writeaprogramtodeterminetoacceptamplitudeandphaseofsequencesgivenby
x|n] = A - cos (n -
n
S2
, + ),andplotthesameforonecompletecycle.
EC302:DigitalSignalProcessing,201011
PreparedBy:Prof.M.C.Patel,
ElectronicsEngineeringDepartment,
S.V.NationalInstituteofTechnology,Surat.
(9)Writetheprogramtodeterminetheaveragepowerofsequencegivenby
x|n] = cos [n -
n
4
- sin[n -
n
8
+ 2 - cos (n -
n
2
)
(10)Writeaprogramthatprovesthatthesquarewaveof100Hzcontainstheoddharmonicof100
Hzfrequency.Ifevenharmonicaretakenitissawtoothwaveof100Hz.

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