Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: commBCHEncoder/commBCHDecoder
Replies: 34   Last Post: Apr 19, 2014 3:48 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Spiros

Posts: 4
Registered: 12/18/10
commBCHEncoder/commBCHDecoder
Posted: Dec 18, 2010 10:37 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi to all,
This question is considered with the use of Communications
Toolbox/Blockset.

I am trying to write a m-file that uses the comm.BCHEncoder/comm.Decoder in MATLAB R2010b for the DVB-T2 (DVB-S2 are the same) standard?.

In the DVB-S.2 model in Simulink the compiler doesn't complaint for any LDPC rate and everything seems OK.
In my code,if I try to use comm.BCHEncoder with any code rate other than 1/2 again everything is OK.
When I try Kbch=32208 and Nbch=32400,
I get an error:The values for N and K do not produce a valid narrow-sense BCH code.

%-----------------BCH encoding.... --------------------------------------
%
% Constrution of BCH_Encoder and BCH_Decoder
N_BCH=32400;
K_BCH=32208;
BBFrame=round(rand(32208,1));
BCH_Encoder=comm.BCHEncoder('CodewordLength',N_BCH,'MessageLength',K_BCH,'GeneratorPolynomial',g);
BCH_Decoder=comm.BCHDecoder('CodewordLength',N_BCH,'MessageLength',K_BCH,'GeneratorPolynomial',g);

BCHFrame=step(BCH_Encoder
Where BBframe is a random 32400 binary vector, and g the generator polynomial exactly the same as in the Simulink model DVB.S2 (can be found under "dvb stuct".
P.S. I also tried to use the PrimitivePolynomial with no success.

Hope for help
kindly regards Spiros


Date Subject Author
12/18/10
Read commBCHEncoder/commBCHDecoder
Spiros
12/20/10
Read Re: commBCHEncoder/commBCHDecoder
Ethem
12/20/10
Read Re: commBCHEncoder/commBCHDecoder
Spiros
3/2/11
Read Re: commBCHEncoder/commBCHDecoder
Adam
3/4/11
Read Re: commBCHEncoder/commBCHDecoder
Spiros
4/12/11
Read Re: commBCHEncoder/commBCHDecoder
Bahman
4/15/11
Read Re: commBCHEncoder/commBCHDecoder
Spiros
6/2/11
Read Re: commBCHEncoder/commBCHDecoder
allice
5/22/11
Read Re: commBCHEncoder/commBCHDecoder
Ratty
4/12/11
Read Re: commBCHEncoder/commBCHDecoder
Bahman
6/23/12
Read Re: commBCHEncoder/commBCHDecoder
Fulus
6/23/12
Read Re: commBCHEncoder/commBCHDecoder
Fulus
6/24/12
Read Re: commBCHEncoder/commBCHDecoder
Bahman
6/25/12
Read Re: commBCHEncoder/commBCHDecoder
Fulus
7/2/12
Read Re: commBCHEncoder/commBCHDecoder
Fulus
7/3/12
Read Re: commBCHEncoder/commBCHDecoder
Bahman
7/15/12
Read Re: commBCHEncoder/commBCHDecoder
Fulus
7/16/12
Read Re: commBCHEncoder/commBCHDecoder
Bahman
7/16/12
Read Re: commBCHEncoder/commBCHDecoder
Fulus
7/17/12
Read Re: commBCHEncoder/commBCHDecoder
Bahman
8/14/12
Read Re: commBCHEncoder/commBCHDecoder
Fulus
8/14/12
Read Re: commBCHEncoder/commBCHDecoder
Bahman
8/15/12
Read Re: commBCHEncoder/commBCHDecoder
Fulus
8/16/12
Read Re: commBCHEncoder/commBCHDecoder
Bahman
8/22/12
Read Re: commBCHEncoder/commBCHDecoder
Ed MrTz
8/22/12
Read Re: commBCHEncoder/commBCHDecoder
Bahman
8/22/12
Read Re: commBCHEncoder/commBCHDecoder
Ethem Sozer
8/25/12
Read Re: commBCHEncoder/commBCHDecoder
Ed MrTz
12/29/12
Read Re: commBCHEncoder/commBCHDecoder
Ed MrTz
5/14/11
Read Re: commBCHEncoder/commBCHDecoder
Akilan
6/28/11
Read Re: commBCHEncoder/commBCHDecoder
Leonardo O. Iheme
7/4/11
Read Re: commBCHEncoder/commBCHDecoder
Leonardo O. Iheme
12/7/11
Read Re: commBCHEncoder/commBCHDecoder
Brian
12/7/11
Read Re: commBCHEncoder/commBCHDecoder
Brian
4/19/14
Read Re: commBCHEncoder/commBCHDecoder
ibrahemsami100@gmail.com

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.