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!