Question about commsrc.pn
9 次查看(过去 30 天)
显示 更早的评论
Hello ereryone. I create my PN generator with this code:
h=commsrc.pn('GenPoly',gfprimdf(3),'InitialStates',[1 0 0],'CurrentStates',[1 0 0],'Mask',[0 0 1],'NumBitsOut',1)
And this is the GF polynomial of my PN generator:
>> gfpretty(h.GenPoly)
3
1 + X + X
The current states of h is:
>> h.CurrentStates
ans =
1 0 0
looking at the GF polynomial, I think the next statue of h should be [0 1 0].But the matlab turn the next states of h into [1 1 0] not the expected value[0 1 0].
>> generate(h);
>> h.CurrentStates
ans =
1 1 0
Thanks for any reply
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!