Showing posts with label prove. Show all posts
Showing posts with label prove. Show all posts

Sunday, 21 October 2012

Linear Convolution Assotiative Law (Prove) in MATLAB



Just create a new file with extension .m and paste the code below in that .m file. Then Run it.

clear all
clc
x=input('enter the x(n) signal : ');
h1=input('enter the h1(n) signal : ');
h2=input('enter the h2(n) signal : ');
s1=input('starting value of x(n) : ');
s2=input('starting value of h1(n) : ');
s4=input('starting value of h2(n) : ');
l1=length(x);
l2=length(h1);
l3=l1+l2-1;
l4=length(h2);
l5=l3+l4-1;
s3=s1+s2;
s5=s3+s4;

Linear Convolution Commutative Law (Prove) in MATLAB



Just create a new file with extension .m and paste the code below in that .m file. Then Run it.

clear all
clc
x=input('enter the x(n) signal : ');
h=input('enter the h(n) signal : ');
s1=input('starting value of x(n) : ');
s2=input('starting value of h1(n) : ');
l1=length(x);
l2=length(h);
l3=l1+l2-1;
s3=s1+s2;

Tech N Science © 2013