image thumbnail

Binery Digital Modulation Technique

by

 

This File Give basic graphical representation of digital modulation techniques

my_digi_mod_a.m
clc;
clear all;
x=[1 1 1 0 0 1];%input data stream;
x_unrz = modulate(x,100,5000,'pwm');
t=linspace(0,2*pi,length(x_unrz));
y=sin(10*t);
subplot(3,3,1)
plot(x_unrz,'r')
title('unipolar NRZ Data')
subplot(3,3,4)
plot(y)
title('Sinosodal signal')
z=y.*x_unrz;
subplot(3,3,7)
plot(z)
title('Amplitude shift keying signal')
for i=1:length(x_unrz);
    if x_unrz(i)==0;
        x_unrz(i)=-1;
    end
end
subplot(3,3,2)
plot(x_unrz,'r')
title('Bipolar NRZ data');
subplot(3,3,5)
plot(y)
title('Sinodal signal')
z1=y.*x_unrz;
subplot(3,3,8)
plot(z1)
title('Phase shift keying signal')
x1 = [0 0 0 1 1 0];
y1 = modulate(x,100,5000,'pwm');
y2 = modulate(x1,100,5000,'pwm');
y3 = sin(20*t);
z2 = y3.*y2;
z3 = z+z2;
subplot(3,3,3)
plot(y)
title('low frequency signal->');
subplot(3,3,6)
plot(y3)
title('high frequency signal');
subplot(3,3,9)
plot(z3)
title('Frequency shift keying');

Contact us