Question about commsrc.pn
9 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!