image thumbnail
from Telephone System by Syed Sana urrahman
Accept 2 users carriers and than linearly mix and than modulate it and than demodulate to get the sa

ssanaproject.m
t=0:0.01:2
a=input('Enter frequency of first User Carrier signal')
b=input('Enter frequency of second User Carrier signal')
fs=input('Enter Sampling Frequency')
x1=sin(a*2*pi*t)
figure
plot(t,x1)
title('First Input signal')
x2=sin(b*pi*t)
figure
plot(t,x2)
title('Second Input signal')
x=x1+x2;
figure
plot(t,x)
title('Composite Signal')
f=10
y = modulate(x,f,fs,'am')
figure
plot(t,y)
title('Amplitude Modulated Signal')
c = demod(y,f,fs,'am')
figure
plot(t,c)
title('Demodulated Signal')
x3=c-x2;
figure
plot(t,x3)
title('First Input signal Recovered')
x4=c-x1;
figure
plot(t,x4)
title('Second Input Signal Recovered')

Contact us at files@mathworks.com