Rsc encoder matlab problem

Discussion in 'Programmer's Corner' started by munna007, Oct 18, 2012.

  1. munna007

    Thread Starter Active Member

    Jul 23, 2008
    51
    0
    HI FRIENDS,

    i am designing RSC encoder i matlab. but output of matlab program is not matching with the theoretical output of encoder.

    Matlab program :

    data=[1 0 1 0 1 0 0 ]

    trellis = poly2trellis(3,[5 7])

    codedata = convenc(data,trellis)

    output : 1 1 0 1 0 0 0 1 0 0 0 1 1 1

    actual theoretical output : systematic o/p : 1 0 1 0 1 0 0
    parity bits : 1 1 0 1 1 0 0
    so correct o/p should be [1 1 0 1 1 0 0 1 1 1 0 0 0 0]

    please tell me what is the problem....
    i have attached diagram of my encoder.
     
    • rsc.jpg
      rsc.jpg
      File size:
      22.7 KB
      Views:
      28
Loading...