Why does the LDPC encoder block error out with certain sparse parity check matirces Communications Blockset 4.0 (R2008a)?
Show older comments
Some sparse matrices will cause the error
Cannot register run-time parameter for dialog parameter 7 for S-function
'scomldpcencode' in 'ldpcerror/LDPC Encoder/LDPC Encoder' because the
dialog parameter is empty.
when used as the Parity Check Matirx parameter of the LDPC encoder block.
The same error is not thrown when using the command line interface.
Reproduction steps:
[parmat,genmat] = hammgen(3);
checkmat=sparse(genmat);
checkmat, used in the command line API works:
enc = fec.ldpcenc(checkmat); % Construct a default LDPC encoder object
% Generate and encode a random binary message
msg = randint(1, enc.NumInfoBits, 2);
codeword = encode(enc, msg);
disp(['codeword = ' num2str(codeword(1:length(codeword)))]);
But if checkmat is used in the LDPC encoder block the error above is thrown.
Accepted Answer
More Answers (0)
Categories
Find more on AI for Wireless in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!