bitshift
换位位指定位置数量
描述
返回intout
= bitshift(一个
,,,,k
)一个
shifted to the left byk
位,等同于乘以2k
。负值k
correspond to shifting bits right or dividing by 2| K |
并绕过最近的整数朝着负无穷大。任何溢出位都被截断。
如果
一个
是一系列签名的整数,然后bitshift
返回算术转移结果,保留签名位k
是负面的,并且不能保留签名的位k
是积极的。如果
k
是积极的,matlab®将钻头向左移动并插入k
右边的0位。如果
k
is negative and一个
is nonnegative, then MATLAB shifts the bits to the right and inserts|
k
|
0-bits on the left.如果
k
is negative and一个
是负的,然后Matlab将位移到右侧并插入|
k
|
左侧1位。