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

You can prove Frequency 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 Frequency Shifting into the new script (.m file) and save the file in the Matlab directory with any name you want.

 

FREQUENCY 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]=sigshift(f1,n,1);

subplot(2,1,2)

stem(y);

  

 Step 3:

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

 

 

OUTPUT:

JsqTE1trz+UAAAAASUVORK5CYII= - Frequency Shifting Property in MATLAB Complete Prove (Code + Output)

 

This is how you can perform Prove Frequency 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!!