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!