DSP Lab 2
DSP Lab 2
imentNo.2
GENERATI
ON&SAMPLI
NGOFSI
GNALSUSI
NG
MATLAB
OBJECTI
VE
• Todi
spl
ayandmani
pul
atedi
ff
erentcont
inuousanddi
scr
etet
imesi
gnal
• Mani
pul
ati
ngSampl
i
ngofcont
inuest
imesi
gnal
s
EQUI
PMENT
• Comput
erSy
stem wi
thMATLABsof
twar
einst
all
edoni
t.
THEORY
• Sampl i
ngi sapr ocessofconv erti
ngacont inuoust imesi gnal(analogsi
gnal)x(t)
i
ntoadi screteti
mesi gnalx[n],whichi srepr esentedasasequenceofnumber s.
(A/Dconv erter
)
• Conv erti
ngbackx[ n]int oanalog( resul
ti
ngi n)i sthepr ocessofr econstr
ucti
on.
(D/Aconv erter)
• Techniquesf orr
econst ructi
on-
(i
)ZOH( zeroorderhold)i
nt er
polat i
onresul
tsi
nast air
casewav eform,isimplemented
by MATLAB pl otting f uncti
on st airs(n,
x), ( i
i) FOH ( fir
stor
der
hold)wheretheadjacent samplesar ej
oinedby straightl
inesi
simpl ementedbyMATLA
Bpl ott
ingfunctionpl ot(n,
x),
(i
ii
)spl i
neinterpolat i
on,etc.
RESULTS:
Per
for
m al
lthecommandofMATLAB(
thatar
erel
atedt
oDSP)gi
veni
n“mat
lab
Exper
iment2.
pdf
”fi
l
egi
vent
oyou.
TASKS:
1. Gener
ati
onofdi
ff
erentconti
nuousanddi scr
etet i
mesignal
a)Progr
am f
orthegenerati
onofUNI Timpulsesignal
b)Progr
am f
orthegenerati
onofUNI Tstepsignal
c)Progr
am f
orthegenerati
onofunitRAMPsi gnal
d)Progr
am f
orthegenerati
onofExponent i
alsi
gnal
e)Progr
am f
orContinuousti
mesignal
f) Pr
ogr
am f
orDiscret
etimecosi
nesignal
2. Per
for
m sampl
ingofcont
inuest
imesi
gnal
s.
(
a)
(
b)
(
c)
(
d)
(
e)
(
f)
Task2
ans
Fi
l
eEdr
t Vi
ew I
nser
tTool
s Deskt
opWi
ndow Hel
p ^
0oB0 b ñt? P 0% aI
t é '
- g
0.
8
0.
6
0.
4
0.
2
-
0.2
-
0.4
-
0.6
-
0%
-
-
1
0 10 20 3 40 5 6
Wi
ndow Hel
p
PLO
no Cr
it
eri
a Begi
nni
ng(
1) Dev
elopi
ng(
2) Accompl
ished(
3) Exempl
ary(
4)
Apply Studentisunableto Wi t
hinst
ructor/ Wi t
hinstruct
or/ Studentisabletoappl y
Procedural applydescribed supervi
sor’
sgui dance, supervisor’
sgui
dance, allprocedural
knowl edge
5 Knowledge proceduretoperform studenti
sabl etoappl y studentisabletoapply toindependently
toperfor
m activ
itydespit
e someoft hedescr ibed alldescri
bedprocedure perform act
ivi
tywithout
anactivi
ty i
nst r
uctor/superv
isor’
s proceduretopar t
iall
y tofull
yper f
orm act
ivi
ty. i
nst r
uctor/supervi
sor’s
guidance. perfor
m acti
v i
ty. guidance.
Studentisableto
Eff
ectivel
y effect
ivel
yand
Student is unable to Studenti
sabletopart
ial
l
y Student is able to
document / i
ndependent l
y
effecti
vel
y document / document/communicate effect
ivel
y document
/
10 communi cat
communi cat
eperfor
med perfor
medact i
vi
ti
es communi cate document /communicat
e
eperformed
activi
ti
es despi
te despit
eguidance. perfor
med act i
vi
ti
es perfor
medact iv
iti
esf
orm
acti
vi
ties
guidance. withguidance. withoutany
guidance.
Psy
chomot
orDomai
nRubr
ics
Act
ivi
tyName EXPERI
MENTNo.2
Gr
oupNo.
St
udentRol
lNo.
12416
N C P Domain+
o L L Taxonom Cr
it
eri
a Awar
dedScor
e(outof4f
oreachcel
l)
. O O y
1 4 1
P3 Appl
yProcedur
alKnowl
edget
oper
for
m
anact
ivi
ty
2 5 10 A3 Ef
fect
ivel
yrepor
tedt
heact
ivi
typer
for
medi
n
l
ab