This is MATLAB code about LDPC (Low Density Parity Check). Could I change the length of data? and how?
ldpcEncoder = comm.LDPCEncoder;
data = logical(randi([0 1],32400,1));
% Transmit and receive LDPC coded signal data
encData = ldpcEncoder(data);
I try to change the length of data, but MATLAB always warns that "Input must be a column vector of length K, the message length." Is this length of data is fixed?
The input of the LDPC codes should be always of length
K, otherwise, the parity matrix would change and the code would be different. When you create anLDPCEncoderobject in MATLAB, you are defining theKandNlengths, so the input data can't change.