⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 encode.hlp

📁 数字通信第四版原书的例程
💻 HLP
字号:
ha_help_begin
ENCODE Encodes a message using Hamming code method.
       CODE = ENCODE(MSG, N, K, METHOD), METHOD = 'hamming', encodes the
       binary codeword in CODE using Hamming code method. The codeword length
       is N and the message length is K. The format of MSG can be either
       a vector or K column matrix. Hamming code is a single error-correction
       code. Its codeword length is N = 2^M-1. Its message length is N-M. 

       CODE = ENCODE(MSG, N, K, METHOD, P_POLY), METHOD = 'hamming', specifies
       the primitive polynomial used in the Hamming encode. P_POLY is a degree
       N polynomial defined in GF(2).

       CODE = ENCODE(MSG, N, K, METHOD...), METHOD = 'hamming/decimal',
       specifies that the input data in MSG is decimal integers. This
       function converts the decimal integer into M bits binary before
       processing the encode computation, where M is the smallest integer
       such that N <= 2^M-1.

       [CODE, ADDED] = ENCODE(...) outputs the number of columns added to the
       input variable MSG in order to make the MSG fit for encoding.
ha_help_end

bl_help_begin
ENCODE Encodes a message using linear block code method.
       CODE = ENCODE(MSG, N, K, METHOD, GEN), METHOD = 'linear', encodes the
       binary message in MSG using linear block code method. The codeword
       length is N and the message length is K. The format of MSG can be
       either a vector or K column matrix. The generator matrix GEN is a
       K-by-N matrix. Linear block code is a generic code. For example, You
       can use HAMMGEN function to generate a generator matrix for Hamming 
       code.

       CODE = ENCODE(MSG, N, K, METHOD, GEN), METHOD = 'linear/decimal',
       specifies that the input data in CODE is decimal integers. This
       function converts the decimal integer into M bits binary before
       processing the encode computation, where M is the smallest integer
       such that N <= 2^M-1.

       [CODE, ADDED] = ENCODE(...) outputs number of columns added to the
       input variable MSG in order to make the MSG fit for encoding.
bl_help_end

cy_help_begin
ENCODE encodes a message using cyclic code method.
       CODE = ENCODE(MSG, N, K, METHOD, CYC_POLY), METHOD = 'cyclic', encodes
       binary message in MSG using cyclic code method. The codeword length
       is N and the message length is K. The format for MSG can be either
       a vector or K column matrix. CYC_POL is a degree N-K cyclic polynomial.
       You can use function CYCLPOLY to produce the cyclic polynomial.

       CODE = ENCODE(MSG, N, K, METHOD...), METHOD = 'cyclic/decimal',
       specifies that the input data in MSG is decimal integers. This
       function converts the decimal integer into M bits binary before
       processing the encode computation, where M is the smallest integer
       such that N <= 2^M-1.

       [CODE, ADDED] = ENCODE(...) outputs number of columns added to the
       input variable MSG in order to make the MSG fit for encoding.
cy_help_end

bc_help_begin
ENCODE encodes a message using BCH code method.
       CODE = ENCODE(MSG, N, K, METHOD), METHOD = 'bch', encodes binary
       message in the input variable MSG using cyclic code method. The
       codeword length is N and the message length is K. The format of MSG
       can be either a vector or K column matrix. Use BCHPOLY to view the
       valid codeword length, message length, and error-correction capability
       of BCH code.

       CODE = ENCODE(MSG, N, K, METHOD, GEN_POLY), METHOD = 'bch', specifies
       the generator polynomial for the BCH code.

       CODE = ENCODE(MSG, N, K, METHOD...), METHOD = 'bch/decimal' specifies
       that the input data in MSG is decimal integers. This function converts
       the decimal integer into M bits binary before processing the encode
       computation, where M is the smallest integer such that N <= 2^M-1.

       [CODE, ADDED] = ENCODE(...) outputs number of columns added to the
       input variable MSG in order to make the MSG fit for encoding.
bc_help_end

rs_help_begin
ENCODE encodes a message using Reed-Solomon code method.
       CODE = ENCODE(MSG, N, K, METHOD), METHOD = 'rs', encodes the binary 
       message in MSG using Reed-Solomon code method. The codeword length
       is N and the message length is K. In R-S code, N must equal to 2^M-1,
       where M is an integer larger than or equal to 3. The error-correction
       capability for R-S code is T = floor((N-K)/2). For efficiency, N-K 
       should be an even number. The format of MSG can be either a vector
       or a K*M column matrix. The function generates a list of all elements
       in GF(2^M) before the calculation.

       CODE = ENCODE(MSG, N, K, METHOD, GF_TP), METHOD = 'rs', provides all
       elements in GF(2^M) for the calculation. You can use function GFTUPLE
       to generate the list of all elements in GF(2^M).

       CODE = ENCODE(MSG, N, K, METHOD...), METHOD = 'rs/decimal' specifies
       that the input data in MSG is decimal integer matrix. MSG must be an
       K column matrix in this format. The decimal integer should be in range
       [0, N-1].

       CODE = ENCODE(MSG, N, K, METHOD...), METHOD = 'rs/power' specifies
       that the elements in MSG are elements in GF(2^M) in power form 
       (exponential form). MSG must be an K column matrix in this format. The
       decimal integer should be integers not larger than N-2.

       [CODE, ADDED] = ENCODE(...) outputs number of columns added to the
       input variable MSG in order to make the MSG fit for encoding.
rs_help_end

co_help_begin
ENCODE encodes a message using convolution code.
       CODE = ENCODE(MSG, N, K, METHOD, TRAN_FUNC), METHOD = 'convolution',
       encodes binary codeword in MSG using convolution code method. The
       codeword length is N and the message length is K. The format of MSG
       can be either a vector or K column matrix. The convolution code 
       transfer function TRAN_FUNC is in octal form, which is a K-by-N matrix.
       You can use function SIM2GEN to generate a convolution code transfer 
       function using SIMULINK block diagram. 

       [CODE, ADDED] = ENCODE(...) outputs number of columns added to the
       input variable MSG in order to make the MSG fit for encoding.
co_help_end       

Wes Wang 10/5/95

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -