Documentos de Académico
Documentos de Profesional
Documentos de Cultura
INGENIERIA EN TELECOMUNICACIONES
Código
%Código
Scatter plot
1
0.8
0.6
0.4
0.2
Quadrature
-0.2
-0.4
-0.6
-0.8
-1
-1 -0.5 0 0.5 1
In-Phase
3) Realizar la gráfica de la señal OQPSK banda base en el dominio del
tiempo (recuerde considerar Fs y N)
w_n=zeros(1,N);
Q=NbitsTX; % numero de simbolos
for sim1=0:Q-1
w_n(1,1+sim1*NporBit:
(sim1+1)*NporBit)=sinalOQPSK(sim1+1,1); % aqui el tiempo
de bit o tiempo de simbolo
end
figure (2),
subplot(4,1,1), plot (n_ , real(w_n), '--r'), grid on,
hold on,
title('OQPSK en Banda base w(n) en funcion del tiempo')
subplot(4,1,2), plot (n_ , imag(w_n), '-b'), grid on,
hold off;
W_k = fft(w_n);
abs_W_k = abs(W_k/N);
P1_W_k = abs_W_k(1:N/2+1);
P1_W_k(2:end-1) = 2*P1_W_k(2:end-1);
f = Fs*(0:(N/2))/N;
figure (3),
subplot(2,1,1), plot(f,P1_W_k)
title('Espectro OQPSK banda base de w(f)')
xlabel('f (Hz)')
ylabel('|P1_W_k(f)|')
%Y = oqpskmod(X)
chip(1).s=[1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0
0 0 1 0 1 1 1 0]';
chip(2).s=[1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1
0 0 1 0 0 0 1 0]';
chip(3).s=[0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0 0 0 1 1
0 1 0 1 0 0 1 0]';
chip(4).s=[0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1 1 1 0 0
0 0 1 1 0 1 0 1]';
chip(5).s=[0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1 1 0 0 1
1 1 0 0 0 0 1 1]';
chip(6).s=[0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 0 1 1 0 1
1 0 0 1 1 1 0 0]';
chip(7).s=[1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0 1 1 1 0
1 1 0 1 1 0 0 1]';
chip(8).s=[1 0 0 1 1 1 0 0 0 0 1 1 0 1 0 1 0 0 1 0 0 0 1 0
1 1 1 0 1 1 0 1]';
chip(9).s=[1 0 0 0 1 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1
0 1 1 1 1 0 1 1]';
chip(10).s=[1 0 1 1 1 0 0 0 1 1 0 0 1 0 0 1 0 1 1 0 0 0 0
0 0 1 1 1 0 1 1 1]';
chip(11).s=[0 1 1 1 1 0 1 1 1 0 0 0 1 1 0 0 1 0 0 1 0 1 1
0 0 0 0 0 0 1 1 1]';
chip(12).s=[0 1 1 1 0 1 1 1 1 0 1 1 1 0 0 0 1 1 0 0 1 0 0
1 0 1 1 0 0 0 0 0]';
chip(13).s=[0 0 0 0 0 1 1 1 0 1 1 1 1 0 1 1 1 0 0 0 1 1 0
0 1 0 0 1 0 1 1 0]';
chip(14).s=[0 1 1 0 0 0 0 0 0 1 1 1 0 1 1 1 1 0 1 1 1 0 0
0 1 1 0 0 1 0 0 1]';
chip(15).s=[1 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1 0 1 1 1 1 0 1
1 1 0 0 0 1 1 0 0]';
chip(16).s=[1 1 0 0 1 0 0 1 0 1 1 0 0 0 0 0 0 1 1 1 0 1 1
1 1 0 1 1 1 0 0 0]';
Código:
k2 = fft(w_n2);
abs_k2 = abs(k2/N);
P1_k2 = abs_k2(1:N/2+1);
P1_k2(2:end-1) = 2*P1_k2(2:end-1);
fv2 = Fs*(0:(N/2))/N;
figure(3)
subplot(2,1,1)
plot(n_, real(bandabase),'k'), title('Señal de banda
estrecha'),xlabel('TIEMPO'),ylabel('AMPLITUD');
subplot(2,1,2)
plot(n_,real(w_n2),'r'), title('Señal de espectro
ensanchado'),xlabel('TIEMPO'),ylabel('AMPLITUD');
8) Comparar gráfica y analíticamente las señales en banda estrecha y
espectro ensanchado tanto en el dominio del tiempo como en el de la
frecuencia.
Código:
figure(4)
subplot(2,1,1)
plot(P1_tfourier(2:end-1),'g'), title('Señal de banda
estrecha'),xlabel('F(Hz)'),ylabel('P (Watts) ');
subplot(2,1,2)
plot(P1_k2(2:end-1),'m'), title('Señal de espectro
ensanchado'),xlabel('Frecuencia'),ylabel('potencia');
9) Conclusiones