DSB-SC with Using Inbuilt Functions with Waveforms

By
Advertisement
clc;
clear all;
close all;
fc=100;
fm=fc/10;
fs=100*fc;
ac=1;
am=2;
t=0:1/fs:4/fm;
ct=ac*cos(2*pi*fc*t);
mt=am*cos(2*pi*fm*t);
figure(1)
st=modulate(mt,fc,fs,'amdsb-sc');
subplot(2,1,1);
plot(mt);
grid;
title('modulating signal');
subplot(2,1,2);
plot(ct);
grid;
title('carrier signal');
figure(2)
subplot(2,1,1);
plot(st);
grid;
title('DSB-SC signal');
dt=demod(st,fc,fs,'amdsb-sc');
subplot(2,1,2);
plot(dt);
title('demodulated signal');
grid;
                                                   

0 comments:

Post a Comment