# Convolution Property in MATLAB Complete Prove (Code + Output)

Convolution Prove: DFT{x1(n)*x2(n)} =
X1(K)X2(K)

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

CONVOLUTION PROPERTY MATLAB CODE:

n1 = 1:10;

u = sin(n1);

n2 = 1:10;

v = cos(n2);

x = conv(u,v);

N = length(x);

f = fft(x,N);

w = 2*pi/N:2*pi/N:2*pi;

subplot(2,1,1);

stem(f);

N1 = length(u);

f1 = fft(u,N1);

N2 = length(v);

f2 = fft(v,N2);

y = f1.*f2;

N3 = length(y);

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 Convolution 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…