Professional Documents
Culture Documents
4
AIM: Write a program to implement folding of discrete time signal.
Theory:
Folding is also termed as Time inversion too. Thus if x(n) is represented the
input signal then x(-n) represents folded input signal.
x[n]=input signal.
Program
clc;
Clear all;
Close; all
subplot(1,2,1)
n=(0:3)
x=[1,2,3,4]
stem(n,x)
xlabel('n')
ylabel('x(n)')
Title=('Original Signal')
subplot(1,2,2)
y=fliplr(x)
n=-fliplr(n)
stem(n,y)
xlabel('-n')
ylabel('x(-n)')
Title=('Folded Signal')
Output:
CONCLUSION: