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.
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.
Attachments
-
22.7 KB Views: 28