CODE:
t=0:0.0005:1;
fc=50;
fs=120;
f=5;
m=sin(2*pi*f*t);
subplot(3,1,1);
plot( t , m),grid on;
title('Modulating signal');
xlabel('Time');
ylabel('Amplitude');
c=sin(2*pi*50*t);
subplot(3,1,2);
plot( t , c),grid on;
title('Carrier signal');
xlabel('Time');
ylabel('Amplitude');
y=modulate(m,fc,fs,'amdsb-sc',1);
subplot(3,1,3);
plot(t , y), grid on;
title('Modulated Signal');
xlabel('Time');
ylabel('Amplitude');xlabel('Time');
ylabel('Amplitude');
Output:
No comments:
Post a Comment