Escolar Documentos
Profissional Documentos
Cultura Documentos
Telecomunicaciones 2
PRACTICAS DE LABORATORIO
MODULATION SCHEME
'fm'
Frequency modulation
OPT is a scalar which specifies the constant of frequency
modulation kf. kf = (Fc/Fs)*2*pi/max(max(abs(X))) by default for a maximum frequency
excursion of Fc Hertz.
'pm'
Phase modulation
OPT is a scalar which specifies the constant of phase
modulation kp. kp = pi/max(max(abs(x))) by default for a
maximum phase excursion of +/pi radians.
'pwm'
Pulse width modulation
If you let OPT = 'centered', the pulses are centered on
the carrier period rather than being "left justified".
'ppm'
Pulse position modulation. OPT is a scalar between 0 and 1 which specifies the
pulse width in fractions of the carrier period. It defaults to .1.
'qam'
Quadrature amplitude modulation.
modulated in quadrature with X.
2.- Presentar cada programa por separado en un archivo m para cada uno. En un archivo
mdl para cada uno.
3.- Mostrar las ondas graficadas en el tiempo y en la frecuencia. Para cada tipo de modulacin
ASK, FSK, PSK, QAM , PAM, PWM,PPM los programas al ejecutarse deben de mostrar:
4. Presentar en CD con un video que muestre la ejecucin de c/u del os programas que se
pide.
-----------------------------------.---------------------------------------------------------------------
Codigo
clc
clear all
close all
t=-4:0.01:4
d = 0 : 1/3 : 1;
pi=3.14
Fc=3500 % frecuencia de la portadora
Fs=40000 %
senal = rectpuls(t,2);
senalpor = cos(2*pi*t*Fc)
subplot(8,2,1),plot(t,senal)
subplot(8,2,3),plot(t,senalpor)
y = modulate(senal,Fc,Fs,'am')
subplot(8,2,5),plot(t,y)
6
x=demod(y,Fc,Fs,'am')
subplot(8,2,7),plot(t,x)
N1=length(senal);
w0=[0:N1-1];
w=(w0.*Fs/N1)-0.5.*Fs;
fourier1=fftshift(fft(senal));
amp=abs(fourier1)./max(abs(fourier1));
subplot(8,2,2),plot(t,amp)
N1=length(senalpor);
w0=[0:N1-1];
w=(w0.*Fs/N1)-0.5.*Fs;
fourier2=fftshift(fft(senalpor));
amp1=abs(fourier2)./max(abs(fourier2));
subplot(8,2,4),plot(t,amp1)
N1=length(y);
w0=[0:N1-1];
w=(w0.*Fs/N1)-0.5.*Fs;
fourier3=fftshift(fft(y));
amp2=abs(fourier3)./max(abs(fourier3));
subplot(8,2,6),plot(t,amp2)
N1=length(x);
w0=[0:N1-1];
w=(w0.*Fs/N1)-0.5.*Fs;
fourier4=fftshift(fft(x));
amp3=abs(fourier4)./max(abs(fourier4));
subplot(8,2,8),plot(t,amp3)
Terminator
Bernoulli
Binary
Bernoulli Binary
Generator
BITS
ASK
ASK
Out1
demodulador ASK
Modulador ASK
Scope1