# Time Shifting Property in MATLAB Complete Prove (Code + Output)

Time shifting Prove: DFT{x(n-l)}
= X(K)e^(-j(2*pi/N)kl

You can prove Time Shifting Property in MATLAB of any sinusoidal signal. To do Linearity with any signal in Matlab, simply open and create a new Script (.m file) in Matlab.

Step 1:

Open MATLAB << Then on the top left corner click on the File option << Click New << Then click Script.

Step 2:

Now write the following Matlab code given below of Time Shifting into the new script (.m file) and save the file in the Matlab directory with any name you want.

TIME SHIFTING MATLAB CODE:

n = 1:5;

x = sin(n);

l = -2;

w = 2*pi/N;

x1 = x.*exp(-1i*w*l*5);

N = length(x1);

f = fft(x1,N);

subplot(2,1,1)

stem(f);

N1 = length(x);

f1 = fft(x,N1);

[y n1]=sigshift1(f1,n,1);

subplot(2,1,2)

stem(y);

Step 3:

Now Run the code, after you have saved the file.

OUTPUT: This is how you can perform Prove Time Shifting Property in MATLAB of any signal. Hope you like this article. If you want to learn more about MATLAB you can read and view all the blog posts related to MALTAB here. MATLAB Learning

If you need any help and assistance, please comment down below so that we can help you. Good Luck!!

See More…