제너레이트 메트릭스를 이용한 Liear Block coding
*준*
다운로드
장바구니
소개글
제너레이트 메트릭스를 이용한 Liear Block code입니다.힘들게 한 보람을 느끼는 그런 자료 입니다.
목차
1. Add the program for decoding. Simulate the coded BER of (7,4) linear block code in the Eb/No range from 3 to 10 dB by increasing 1 dB. Save `codedber` into a file.Now change the program for the (15,11) code considered in Part I.
2. Program to display 32 codewords corresponding to the messages 0 to 31 in integer. Capture the display and find if they are cyclic or not.
3. Program to find the minimum Hamming distance of the code.
4. Add the Gaussian noise of Eb/No = 4 dB with to the codeword of a message. Display the received sequence after BPSK detection.
5. Perform decoding. Display the syndrome, the corresponding error pattern, and decoded message. Is the decoded message same with the transmitted message?
5. Obtain the coded bit error rate (BER) in the Eb/No range from 3 to 10 dB by increasing 1 dB.
6. Compare the coded BERs of (7,4) code and (15,11) code in one plot. Which one shows a better performance? Why?
본문내용
%clear all;
%% Parameter setting
L=1000000; % Number of iterations
G=[1 1 1 1 0 0 0; 1 0 1 0 1 0 0 ; 0 1 1 0 0 1 0 ; 1 1 0 0 0 0 1];
[k,n]=size(G);
cr=k/n; % code rate
P=G(:,1:n-k);
% Parity check matrix
H=[eye(n-k) P.`];
message=de2bi(0:2^k-1, k, `left-msb`);
% Syndrom testing
errorpattern=zeros(2^(n-k), n);
errorpattern(2:end,:)=eye(2^(n-k)-1);
syn_vec=mod(errorpattern*H`, 2);
syn_int=bi2de(syn_vec, `left-msb`);
% Make a syndrome table
syn_err_table=zeros(2^(n-k), n);
syn_err_table(syn_int+1,:)=errorpattern;
% Decoding
bpsksym=[-1 1];
% bit energy
EbNodB = 3:1:10;
uncber=zeros(size(EbNodB));
codedber=zeros(size(EbNodB));
codedper=zeros(size(EbNodB));
for snrindex=1:length(EbNodB),
EbNo=10^(EbNodB(snrindex)/10);
EcNo=EbNo*cr;
No=1/EcNo;
gain=sqrt(No/2);
message=randint(L,k);
%Encoding
본문에 포한된 주된 매트랩 코드 입니다.
참고 자료
없음이 자료와 함께 구매한 자료
- [워드2003][디지털통신2]Matlab Design_(7,3) Linear Block Code E.. 7페이지
- [디지털통신2]Matlab Design_(7,3) Linear Block Code Encoding .. 7페이지
- 디지털 통신] PSK, QAM 방식의 Bit error probability(BER) 시뮬레이션(B.. 12페이지
- [워드2003][디지털통신2]Matlab Design_Hadamard Matrix를 이용한 Orth.. 4페이지
- Recursive Systematic Convolution simulation 레포트 10페이지