You are on page 1of 2

EC302:DigitalSignalProcessing,201011

PreparedBy:Prof.M.C.Patel,
ElectronicsEngineeringDepartment,
S.V.NationalInstituteofTechnology,Surat.
Laboiatoiy uS
Implementation of uiffeient
Bisciete time system
(1)Asequenceisgivenbyx(n) = (-n - 9), or u n S,writetheprogramtoplotthe
sequencesy|n] = x|4 - n].
(2)WriteaMATLABprogramtotestweatherfollowingsystemarelinearornonlinear.
(a)y|n] = x|n] - cos (n -
n
6
),
(b)y|n] = sin (x|n]),
(c)S -
d
dt
+ y(t) = S - x(t)
(3)WriteaMATLABprogramthatcheckthatfunctionorsystemaretimeinvariantortimevarying.
Thesystemequationsaregiveninquestion2.
(4)Writeaprogramtoimplementanoncausalthreesampleaveragegivenby
y|n] =
1
S
- {x|n + 1] + x|n] + x|n - 1]]
[5]Writeaprogramtocomputeandtheplottheimpulseresponseofsystemgivenby
y|n] = u.8 - y(n - 1) - u.64 - y|n - 2] + u.866 - x|n].
Alsodeterminethestabilityofthissystem
[6]Writeaprogramtodeterminetheoutputy[n],n0ofthesystemdescribedbydifferences
equation
y|n] = x|n] - 2 - x|n - 1] + x|n - 2]
wheretheinputisx[n]=u[n].Alsoploty[n]for0025.
[7]Writeaprogramtofindtheconvolutionofthetwosequencegivenbelow
x[n]={3,11,7,0,1,4,2}and
h[n]={2,3,0,5,2,1}
Thesystemequationgiveninq.6determinetheimpulseresponse.Andthenverifyusingthe
convolutionfunction.

EC302:DigitalSignalProcessing,201011
PreparedBy:Prof.M.C.Patel,
ElectronicsEngineeringDepartment,
S.V.NationalInstituteofTechnology,Surat.
[8]Writeaprogramtocomputeandplotthecorrelationsequencesr
xy
[m]andr
xx
[m]forthe
followingsignalsequences
x|n] = ]
1
u
or - S n 7
otbrwisc
and
y|n] = ]
1
u
or - S n S
otbrwisc
,
wheremistimeshiftparameter.
[9]Asystemhastheimpulseresponsesequencesgivenas
b|n] = _
(
1
2
, )
n
u
,
or u n S
otbcrwisc
,
writeaprogramtocomputetheoutputofthesystemwhentheinputsarethefollowingsequences.
(a)x|n] = (-12)
n
- u|n],and
(b)x|n] = cos (n -
n
16
),
(c)asonggeneratedinLab02q.6

[10]Asignalgivenby
x|n] = cos(u.u2S n) + u.S - cos (u.7S n)
isfilteredusingFIRfilterrepresentedas
y|n] =
x|n]
6
+
x|n-1]
3
+
x|n-2]
3
+
x|n-3]
6
,
Determiney[n]andplotx[n]andy[n].

You might also like