error in bit shifting operation

2 次查看(过去 30 天)
a=[1 0 0 0 0 0 1 0 1]
i want to shift these bits according to my requirement
like i want them to shift left side two bits
b=[0 0 0 0 1 0 1 1 0]

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2014-2-26
circshift(a,[0 -2])
  1 个评论
Raza Ali
Raza Ali 2014-2-26
i have
a= [0 0 1 0 1 0 1 1]
i want this convert it in decimal value 43

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by