Escolar Documentos
Profissional Documentos
Cultura Documentos
:lj::,
i!*r':;
t ir,,
Dasmarinas, Cavite
COLLEGE OF ENGINEERING, ARCHITECTURE, AND TECHNQLOGY
ELECTRONICS FNGINEERING
Itlame:
Date Performed:
Rating
Experinrent
i!o
OBJECTIVES:
This experintent will enable the studerrls io ieain how to perform discrete-tiile signal
addition multiplicaiion. shifting and foldrng Sanrlrie problems will be solved to iiiust;-a:ie the
process.
PROCEDURE:
SignalAddition
Write the following Matlab script to create a function to implemept
y(n) =x1(n) +x"1p1
15
t
+:i4 r riT
!r r$!
!'1
-j
y=y1 +!2',
ti
Signal Multiplicatiorr
Create an m-f ile
irr
x '(it)
))
v 1 (frn;111
,,'1
ir.'l
)l==
-1
1=x
\/ y -
\,1
Y I
* rt)
yL,
llt
Signal Shifting
Write the follorving Matlab script to create a function to implement
Y(n)
=x(n-k)
>>n=m+k:
>>Y=x;
Save the file as sigshift.m
16
>> y
>>
= -fliplr-in),
i-)
fliplr(x):
Example1Letx(n)
.{1?3
t'tt
otution: The first term can be written as x[-(n-3)] and can be obtained'by folding x(n) and then
shifting the result by 3 using sigfold and sigshift functions. x(n) and v{r-'-2) is
multiplied using sigmult function. The previous results can then be added using the
sigadd function to obtain the final output-
>> n = [-2'.10] ;x = 11
t'
.7,6:-1
: 1l
tt
Tasks.
1.
a.
b
C.
f,;ata
{2,4, -3, 1, -5, 4,7 ) Gerrerate and plot each of the followiii{j
yr(n) =2x(n-3) +3x(n+4) -x(n)
Lel x(n) =
2),
1,,"j".
corrloireris
;l*d t{esr,rlts.
n) + y1,',1 - x(n
2)
3,) +
1B
n)"[2x(n)]
40
IJ
OBSERVATIONS/RESU LTS
CONCLUSION:
2A
1..
r ;y.';,r1:,qrr::r,::1|.ryffi@i!"er;S.ri.1tffi
l:inf