Program for addition of two continuous signals in Matlab:

x=linspace(0,2*pi,100);

a=sin(x);

b=cos(x);

c=a+b;

y=plot(x,a,x,b,’*’,x,c,’+’)

Advertisements