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: Convoultional Coding/Decoding with Matlab Functions
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Jared

Posts: 3
Registered: 10/13/11
Convoultional Coding/Decoding with Matlab Functions
Posted: Dec 3, 2012 3:57 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

I'm trying to perform convolutional coding/decoding using built in Matlab functions. I'm trying to implement (2,1,3) code.

K=3;
G1=7;
G2=5;
msg=[1 1 0 0 1 0];
trel=poly2trellis(K,[G1 G2]);
coded=convenc(msg,trel);
decoded=vitdec(coded,trel,5*K,'cont','hard');

coded=[1 1 0 1 0 1 1 1 1 1 1 0]
decoded=[0 0 0 0 0 0]

As you would expect, the decoded message should be the same as msg, which it is not. I don't see where I have gone wrong in this simple example.



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.