Duality Property in MATLAB Complete Prove (Code + Output)

Duality Prove: DFT[Nx(-n)] = X(K)

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




n = 1:10;

x = sin(n);

Ni = -1;

w = -pi+2*pi/Ni:2*pi/Ni:pi;

[y n1] = sigfold(x,n);

y1 = y.*Ni;

N1 = length(y1);

f = fft(y1,N1);



N = length(x);

f1 = fft(x,N);





 Step 3:

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




AMKJLx3elyOFAAAAAElFTkSuQmCC - Duality Property in MATLAB Complete Prove (Code + Output)


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