フィルターのクリア

LDPC codes not working in comm toolbox.

3 ビュー (過去 30 日間)
Alex Dytso
Alex Dytso 2014 年 7 月 11 日
回答済み: Yonatan Marin 2019 年 4 月 26 日
Hello, I want to implement the following code
H = dvbs2ldpc(3/5);
[r,c]=size(H);
henc = comm.LDPCEncoder(H);
hdec = comm.LDPCDecoder(H);
data=logical(randi([0 1],r, 1));
encodedData=step(henc, data);
However, I get the following error "
"Error using LDPCEncoder/step Input must be a column vector of length K."
What am I doing wrong

回答 (1 件)

Yonatan Marin
Yonatan Marin 2019 年 4 月 26 日
Hello Alex,
the problem lies in the data vector. It does not have the necessery size.
It must be k= #columns - #rows, where as the columns and rows of matrix H are meant.
Maybe
data=logical(randi([0 1],size(H,2)-size(H,1),1))
will work...
Best regards,
Yonatan

カテゴリ

Help Center および File ExchangeAI for Wireless についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by