You are on page 1of 3

Table of Contents

LAB 4...........................................................................................................................................................1
Circular Time Shift Property.......................................................................................................................1
Circular Frequency shift Property...............................................................................................................2
Conclusion....................................................................................................................................................3

LAB 4
%Name of Student: Shweta Sonkusare
%Roll No.: 222
%Section: C
%Semester: VI
%Course Name: DIGITAL SIGNAL PROCESSING LAB
%Course Code: ET2352
%Course Teacher Name: Prof. M S DORLE
%Date of Performance: 12/03/2021
%Department of Electronics and Telecommunication YCCE,NAGPUR
clc;clear;close all;

Circular Time Shift Property


%Assume a sequence xn=[2 3 4 1 0 7]. Given that shift by k=2 value.
xn =[2 3 4 1 0 7];
N= length(xn);
n=0:N-1;
Xc =cirshift(xn,2,N);
figure;
subplot(2,2,1)
stem(xn)
xlabel('Sample')
ylabel("Amplitude")
title("Orignal Signal")

subplot(2,2,2)
stem(Xc)
xlabel('Sample')
ylabel('Amplitude')
title('LHS')

x1=xn(mod(n-2,N)+1);
subplot(2,2,3)
stem(x1)
xlabel('Sample')
ylabel('Amplitude')
title('RHS')

1
Circular Frequency shift Property
xn =[2 3 4 1 0 7];
N= length(xn);
n=0:N-1;
Xk=dft(xn,N); % Frequency signal of xn.

XC =cirshift(Xk,2,N);

figure;
subplot(2,2,1)
stem(real(Xk))
xlabel('Sample')
ylabel("Amplitude")
title("Orignal Signal")

subplot(2,2,2)
stem(real(XC))
xlabel('Sample')
ylabel('Amplitude')
title('LHS')

x1=Xk(mod(n-2,N)+1);
subplot(2,2,3)
stem(real(x1))
xlabel('Sample')
ylabel('Amplitude')
title('RHS')

Conclusion
%A) Circular Time Shift Property is Verified.
%B) Circular Frequency Shift Property is verified.

Published with MATLAB® R2020b

You might also like