error in bit shifting operation

2 ビュー (過去 30 日間)
Raza Ali
Raza Ali 2014 年 2 月 26 日
コメント済み: Raza Ali 2014 年 2 月 26 日
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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by