검색어 입력폼

# [정보 및 부호이론] 블럭코드

등록일 2003.08.28 한글 (hwp) | 7페이지 | 가격 1,000원

## 소개글

전자공학과 '정보 및 부호이론' 리포터!
블럭코드를 C언어로 시뮬레이션: 소스 및 결과 공개!

## 목차

1.Obtain parity check equations, generator matrix and parity check matrix.

2.Obtain the computer program for encoding.
Find all the legal codewords by the obtained program

3.Obtain the computer program for decoding including error correcting procedure.
Obtain the bit sequence of the following sentence.

4.If the ith bit of the ith character(for i=1,2,3,...,n where n is the codeword length) is received in error, decode the received codeword by using the obtained program

5. Analyse and discuss the characteristics of this code.

## 본문내용

% block coding for ASCII. produce G,H matrix.
clear all;

p=[0 0 1 1;0 1 0 1;0 1 1 0;0 1 1 1;1 0 0 1;1 0 1 0;1 0 1 1];
a=[];
b=[];
a=dec2bin(p)';
for i=0:3
for j=0:6
b(i+1,j+1)=a(7*i +j+1);
end
end
p=setstr(b'); % produce p matrix

b=[];
a=dec2bin(eye(7))';
for i=0:6
for j=0:6
b(i+1,j+1)=a(7*i+j+1);
end
end
eye7=setstr(b); % 7*7 identity mataix

b=[];
a=dec2bin(eye(4))';
for i=0:3
for j=0:3
b(i+1,j+1)=a(4*i+j+1);
end
end
eye4=setstr(b); % 4*4 identity mataix

G=[eye7 p]; % produce G matrix
H=[p' eye4]; % produce H matrix

for i=0:127 % produce 128 messages
m(i+1)=i;
end
m=dec2bin(m);