Question about commsrc.pn

9 ビュー (過去 30 日間)
adream307
adream307 2012 年 8 月 20 日
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 件)

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by