How to implement the Linear Block Codes ?

9 ビュー (過去 30 日間)
aaa bbb
aaa bbb 2014 年 1 月 11 日
回答済み: Ahmed Ayoub 2022 年 4 月 1 日
Hello,
I have a voice signal which I have quantized and applied Huffman encoding and now I need to implement the Linear block codes. After the huffman encoding I have the index values as a 40000x1 double matrix (which needs to be coded) and this is the code that I use:
symbols = [1:17]; % Distinct symbols that data source can produce
p = prob_y; % Probability distribution
[dict,avglen] = huffmandict(symbols,p); % Create dictionary.
comp = huffmanenco(index,dict);
code = encode(index,n,k,'linear/decimal',genmat); %Linear Block codes
Here I don't really know which values to choose for n and k to calculate genmat(generator matrix).My index matrix has the dimensions of 40000x1 double. I would be glad if you could help on that. Thanks!
  1 件のコメント
Walter Roberson
Walter Roberson 2014 年 1 月 11 日
You use "index" without calculating it.
It appears that your index values do not depend on the huffman encoding.
Are you intended to LBC the index values or the huffman-compressed data?

サインインしてコメントする。

回答 (1 件)

Ahmed Ayoub
Ahmed Ayoub 2022 年 4 月 1 日
poly = Cyclpoly(7,4 , 'all');
poly=
1011;
1101;
genpoly = (1101);
[parmat , genmat]=Cyclgen (7 ,genpoly, 'non sys');

カテゴリ

Help Center および File ExchangeSource Coding についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by