scramble matlab,Scramble and descramble binary input sequence

Initial scrambler state, specified as an integer in the interval [1, 127],

or the corresponding binary-valued column vector of length 7.

Section 17.3.5.5 of [1] specifies the

scrambling and descrambling process applied to the transmitted data. The

header and data fields that follow the scrambler initialization field

(including data padding bits) are scrambled by XORing each bit with a

length-127 periodic sequence generated by the polynomial S(x) =

x7+x4+1. The octets of the PSDU are placed into a bit stream, and,

within each octet, bit 0 (LSB) is first and bit 7 (MSB) is last. This figure

demonstrates the sequence generation and XOR operation.

cfe23f35b2e8c3538331371cf5277255.png

Conversion from integer to bits uses left-MSB orientation.

For the initialization of the scrambler with decimal 1,

the bits are mapped to the elements shown.

ElementX7X6X5X4X3X2X1Bit value0000001

To generate the bit stream equivalent to a decimal, use the

de2bi function. For example,

for the decimal

1:

de2bi(1,7,'left-msb')

ans =

0 0 0 0 0 0 1

Example:[1; 0; 1; 1; 1; 0; 1] conveys the scrambler

initialization state of 93 as a binary-valued columnm vector.

Data Types:double

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值