h = cyclgen(n,p)
produces an (n – k)-by-n
parity-check matrix for a systematic binary cyclic code that has a codeword length
n for the generator polynomial, p. To generate a
cyclic code, the generator polynomial, p, must be a factor of
Xn – 1.
h = cyclgen(n,p,opt)
includes opt to specify whether the cyclic parity-check matrix is
systematic or nonsystematic.
[h,g] = cyclgen(___),
using any previous syntax, also returns the k-by-n
generator matrix, g, which corresponds to the parity-check matrix,
h.
[h,g,k] = cyclgen(___),
using any previous syntax, also returns the message length, k.
Create the parity check and generator matrices for a (7,3) binary cyclic code. Because this code is systematic, the parity check matrix parmat2 has a 4-by-4 identity matrix embedded in its leftmost columns.
Codeword length, specified as a positive integer. Over the binary field gf(2),
(Xn – 1) is the
same as (Xn + 1).
This relation implies that the message length, k =
n – m, where m is the
degree of the generator polynomial.
Generator polynomial coefficients in ascending order, specified as a string or
binary row vector. To generate a cyclic code, you must specify the generator polynomial
as a factor of Xn – 1, where n is the codeword length.
Type of cyclic parity-check matrix, specified as one of these options:
"system" — Produces a systematic cyclic parity-check
matrix. A systematic cyclic parity-check matrix includes an identity matrix
embedded in its leftmost columns.
"nonsys" — Produces a nonsystematic cyclic parity-check
matrix.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.