Thursday 21 August 2014

Write a Program to develop program module based on operatios on sequences like signal addition and signal multiplication.


n=0:3
x=input('Enter First Input Signal:')
y=input('Enter Second Input Signal:')
%First Input Signal
subplot(2,2,1)
stem(n,x)
xlabel('n-->')
ylabel('x(n)-->')
title('First Input Signal 1311977:')
%Second Input Signal
subplot(2,2,2)
stem(n,y)
xlabel('n-->')
ylabel('y(n)-->')
title('Second Input Signal by 1311977:')
%Addtion of First and Second Signal
subplot(2,2,3)
a=x+y
stem(n,a)
xlabel('n-->')
ylabel('a(n)-->')
title('Addition of Two Sequences by 1311977:')
%Multiplication of First and Second Signal
subplot(2,2,4)
m=x.*y
stem(m,a)
xlabel('n-->')
ylabel('m(n)-->')
title('Multiplication of Two Sequences by 1311977:')

No comments:

Post a Comment