[MATLAB]매트랩을 이용하여 QPSK와 pi-QPSK 성능 비교.
본 자료는 4페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
해당 자료는 4페이지 까지만 미리보기를 제공합니다.
4페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

[MATLAB]매트랩을 이용하여 QPSK와 pi-QPSK 성능 비교.에 대한 보고서 자료입니다.

목차

1. Introduction

2. What is QPSK?

3. What is pi/4-DQPSK?

4. How to simulation two schemes

5. Simulation Results ( Capture ) & Analysis

6. Matlab source code

본문내용

ignal = pskdemod(signal_ch,M,0,'gray'); % QPSK Demodulate with gray coding.
received_signal_binary = de2bi(received_signal,'left-msb');
% signal value convert to binary
num_of_error_qpsk(index) = length(find([tx_binary-received_signal_binary]));
% couting the number of errors
end
% 2nd case : pi/4-DQPSK
signal = dpskmod(tx,M,pi/4,'gray'); % pi/4-DQPSK modulation with gray coding
figure
subplot(2,2,1), plot(signal(1:1:10000),'Marker','.','LineStyle','none');
%(we) plote only 1000 signals to see clearly
hold on;
%ploting decision region
plot([-2:1:2],[-1:0.5:1],'r--',[-2:1:2],[1:-0.5:-1],'r--',[-1:0.5:1],[-2:1:2],'r--',[-1:0.5:1],[2:-1:-2],'r--')
axis([-1.5 1.5 -1.5 1.5]);grid on;
title('Signal Constellation of pi/4-DQPSK')
hold on;
for index = 1:length(Eb_N0_dB)
signal_ch = awgn(signal,Es_N0_dB(index)); % through the AWGN channel.
if Eb_N0_dB(index)==5 %when Eb/N0=5dB, ploting
subplot(2,2,2), plot(signal_ch(1:1:10000),'Marker','.','LineStyle','none');
%(we) plote only 1000 signals to see clearly
title('Eb/N0 = 5dB'); axis([-2 2 -2 2]); grid on;
hold on;
%ploting decision region
plot([-2:1:2],[-1:0.5:1],'r--',[-2:1:2],[1:-0.5:-1],'r--',[-1:0.5:1],[-2:1:2],'r--',[-1:0.5:1],[2:-1:-2],'r--')
elseif Eb_N0_dB(index)==10 %when Eb/N0=10dB, ploting
subplot(2,2,3), plot(signal_ch(1:1:10000),'Marker','.','LineStyle','none');
%(we) plote only 1000 signals to see clearly
title('Eb/N0 = 10dB'); axis([-2 2 -2 2]); grid on;
hold on;
%ploting decision region
plot([-2:1:2],[-1:0.5:1],'r--',[-2:1:2],[1:-0.5:-1],'r--',[-1:0.5:1],[-2:1:2],'r--',[-1:0.5:1],[2:-1:-2],'r--')
elseif Eb_N0_dB(index)==20 %when Eb/N0=20dB, ploting
subplot(2,2,4), plot(signal_ch(1:1:10000),'Marker','.','LineStyle','none');
%(we) plote only 1000 signals to see clearly
title('Eb/N0 = 20dB'); axis([-2 2 -2 2]); grid on;
hold on;
%ploting decision region
plot([-2:1:2],[-1:0.5:1],'r--',[-2:1:2],[1:-0.5:-1],'r--',[-1:0.5:1],[-2:1:2],'r--',[-1:0.5:1],[2:-1:-2],'r--')
end
received_signal = dpskdemod(signal_ch,M,pi/4,'gray'); % Demodulate.
received_signal_binary = de2bi(received_signal,'left-msb');
% signal value convert to binary
num_of_error_dqpsk(index) = length(find([tx_binary-received_signal_binary]));
% couting the number of errors
end
ber_QPSK = num_of_error_qpsk/N; %calculate bit error rate of QPSK
ber_DQPSK = num_of_error_dqpsk/N; %calculate bit error rate of pi/4-DQPSK
theory_ber_QPSK = 2*qfunc(sqrt(2*2*Eb_N0_real)*sin(pi/4));
%using improved Union Bound, calculate theory BER of QPSK
%Ploting section.
figure
semilogy(Eb_N0_dB,theory_ber_QPSK,'b.-'); % ploting of theory_ber_QPSK
hold on
semilogy(Eb_N0_dB,ber_QPSK,'mx-'); % ploting of simalated BER of QPSK
hold on
semilogy(Eb_N0_dB,ber_DQPSK,'ro-'); % ploting of simalated BER of pi/4-DQPSK
axis([0 15 10^-5.5 1])
grid on
legend('theory-QPSK', 'simulation-QPSK', 'simulation-pi/4-DQPSK');
xlabel('Eb/No, dB')
ylabel('Pb(e)')
title('Bit error probabilities for QPSK and pi/4-DQPSK with Gray coding')
set(gca,'XTick',[0 2 4 6 8 10 12 14 15]);

키워드

  • 가격2,500
  • 페이지수12페이지
  • 등록일2009.06.16
  • 저작시기2007.3
  • 파일형식한글(hwp)
  • 자료번호#541590
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니